summaryrefslogtreecommitdiff
path: root/templates/displayheaders/_folders.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/displayheaders/_folders.html.ep')
-rw-r--r--templates/displayheaders/_folders.html.ep29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/displayheaders/_folders.html.ep b/templates/displayheaders/_folders.html.ep
new file mode 100644
index 0000000..be5bdd9
--- /dev/null
+++ b/templates/displayheaders/_folders.html.ep
@@ -0,0 +1,29 @@
+<div id=display-folders class="pure-g jwm-nav">
+
+ <div class="pure-u-1-1 pure-u-md-1-2">
+ <nav class="pure-menu pure-menu-horizontal">
+
+ <strong class="pure-menu-heading">
+ %= l($folder || '_mailbox_root')
+ </strong>
+
+ <ul class="pure-menu-list">
+% for (grep {$_ ne $folder} @$mail_folders) {
+ <li class="pure-menu-item">
+ %= link_to '' => {folder => $_} => (class => 'bright') => begin
+ %= l($_ || '_mailbox_root')
+ % end
+ </li>
+% }
+ </ul>
+
+ </nav>
+ </div>
+
+ <p class="pure-u-1-1 pure-u-md-1-2">
+ <%= l('[_1] of [_2] messages', $pgn->{this_page}[1] - $pgn->{this_page}[0], $pgn->{total_items}) %>\
+ <%= l(', [_1] new', $total_new_mails) if $total_new_mails > 0 =%>
+ <%= l(' - mailbox size: [_1]', print_sizes10 $total_size) if $total_size %>
+ </p>
+
+</div>