summaryrefslogtreecommitdiff
path: root/templates/headers/_displayfolders.html.ep
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-01 22:06:03 +0200
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-01 22:06:03 +0200
commit72ae9b3f63ddbe296f3e4e8f8db2d29303163d68 (patch)
treef0db960b784719df0c7318720880c73b5330b937 /templates/headers/_displayfolders.html.ep
parent7c8bd21ccbca8a3166289ab0e5511cc82d2822aa (diff)
use more tag helpers in templates
Diffstat (limited to 'templates/headers/_displayfolders.html.ep')
-rw-r--r--templates/headers/_displayfolders.html.ep18
1 files changed, 12 insertions, 6 deletions
diff --git a/templates/headers/_displayfolders.html.ep b/templates/headers/_displayfolders.html.ep
index 8cff0ed..7bc5b12 100644
--- a/templates/headers/_displayfolders.html.ep
+++ b/templates/headers/_displayfolders.html.ep
@@ -2,25 +2,31 @@
<tr>
<td id=folder-list class=alter-font>
- <strong class=up> <%= l($folder) || $folder %> </strong>
+ <strong class=up>
+ %= l($folder) || $folder
+ </strong>
<ul class=line>
% for my $v (grep {$_ ne $folder} @$mail_folders) {
- <li><a href="<%= url_for(folder => $v) %>" class=bright> <%= $v ne '' ? (l($v) || $v) : l 'Home' %> </a></li>
+ <li>
+ %= link_to '' => {folder => $v} => (class => 'bright') => begin
+ %= $v ? (l($v) || $v) : l 'Home'
+ % end
+ </li>
% }
</ul>
</td>
<td>
<em class=msg-count>
- <%= $first_item %>-<%= $last_item %> <%= l 'of' %> <%= $total_items %> <%= l 'messages' %>\
- <%= ", $total_new_mails " . l('new') if $total_new_mails > 0; =%>
+ <%= "$first_item - $last_item " . l('of') . " $total_items " . l('messages') %>\
+ <%= ", $total_new_mails " . l('new') if $total_new_mails > 0 =%>
% if ($total_size) {
- - <%= ucfirst l('mbox_size') . ": " . print_sizes10 $total_size %>
+ - <%= ucfirst(l 'mbox_size') . ": " . print_sizes10 $total_size %>
% }
</em>
</td>
</tr>
-</table> \ No newline at end of file
+</table>