% my $sort_param = begin % my $param = shift; %= 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; % end % end
%# $sort_param->('status');
%= $sort_param->('date');
% if ($folder ne "SENT") {
%= $sort_param->('sender');
% }
% else {
%= 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
|
% }
%= $sort_param->('subject');
%= $sort_param->('size');
|
% my $date = parse_iso_date $msg->{head}{date};
%= join('/', $date->{mday}, $date->{month}, $date->{year}) . " $date->{hour}:$date->{min}";
%= $msg->{head}{from}[0]{name} || $msg->{head}{from}[0]{email};
%= link_to $msg->{head}{subject} || '_' => read => {id => $msg->{mid}}
%= print_sizes10 $msg->{size};
|
%= check_box mail => $msg->{mid} => (form => 'move-mail') | % end % }
---|