summaryrefslogtreecommitdiff
path: root/templates/headers/_display_headers.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/headers/_display_headers.html.ep')
-rw-r--r--templates/headers/_display_headers.html.ep37
1 files changed, 20 insertions, 17 deletions
diff --git a/templates/headers/_display_headers.html.ep b/templates/headers/_display_headers.html.ep
index d3f9457..c278a37 100644
--- a/templates/headers/_display_headers.html.ep
+++ b/templates/headers/_display_headers.html.ep
@@ -2,11 +2,11 @@
% my $param = shift;
<th class=sort-param>
- <a href="<%= url_with->query(sort => (param('sort') || '') eq $param ? '!' . $param : $param) %>">
+ %= link_to url_with->query(sort => $param eq (param('sort') || '') ? '!' . $param : $param) => begin
% no warnings qw(experimental::smartmatch);
%= do { given (param('sort')) { '↑' when ($param); '↓' when ('!' . $param) } }
%= ucfirst l $param;
- </a>
+ % end
</th>
% end
@@ -25,25 +25,28 @@
<thead>
<tr id=sort>
- <th> <%= ucfirst l 'nr' %> </th>
+ <th>
+ %= ucfirst l 'nr'
+ </th>
%= $sort_param->('status');
%= $sort_param->('date');
-
% if ($folder ne "SENT") {
%= $sort_param->('sender');
- % } else {
+ % }
+ % else {
<th class=sort-param>
- <a href="<%= url_with->query(sort => param('sort') ne '!sender' ? 'sender' : '!sender' ) %>">
- <%= ucfirst l 'recipient' %>
- % if (param('sort') eq "sender") {
- <IMG SRC="/down.gif" width="12" height="12" border="0" alt="v">
- % } elsif (param('sort') eq "recipient_rev") {
- <IMG SRC="/up.gif" width="12" height="12" border="0" alt="^">
- % }
- </a>
+ %= link_to url_with->query(sort => param('sort') ne '!sender' ? 'sender' : '!sender' ) => begin
+ %= ucfirst l 'recipient'
+ % if (param('sort') eq "sender") {
+ %= image '/down.gif' => (width => 12) => (height => 12) => (border => 0) => (alt => 'v')
+ % }
+ % elsif (param('sort') eq "recipient_rev") {
+ %= image '/up.gif' => (width => 12) => (height => 12) => (border => 0) => (alt => '^')
+ % }
+ % end
</th>
% }
@@ -63,7 +66,7 @@
% foreach my $msgnum ($first_item .. $last_item) {
% my $msg = $msgs->[$msgnum - $first_item];
- <tr class="<%= $msg->{new} ? 'new-mail' : '' %>" id="<%= $msg->{mid} %>" >
+ %= tag tr => (class => $msg->{new} ? 'new-mail' : '') => (id => $msg->{mid}) => begin
<td>
%= $msgnum
</td>
@@ -78,15 +81,15 @@
%= $msg->{head}{from}[0]{name} || $msg->{head}{from}[0]{email};
</td>
<td>
- <a href="<%= url_for('read', id => $msg->{mid}) %>"> <%= $msg->{head}{subject} || '_' %> </a>
+ %= link_to $msg->{head}{subject} || '_' => read => {id => $msg->{mid}}
</td>
<td>
%= print_sizes10 $msg->{size};
</td>
<td>
- <input type=checkbox name=mail value="<%= $msg->{mid} %>" form=move-mail>
+ %= check_box mail => $msg->{mid} => (form => 'move-mail')
</td>
- </tr>
+ % end
% }
</tbody>