From a6e6f8be88a93699765f25aee0e6109a3eb0b307 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Tue, 3 May 2022 18:22:43 +0200 Subject: reworked templates based on purecss --- templates/headers/_display_headers.html.ep | 107 ++++++++++++++++------------- 1 file changed, 61 insertions(+), 46 deletions(-) (limited to 'templates/headers/_display_headers.html.ep') diff --git a/templates/headers/_display_headers.html.ep b/templates/headers/_display_headers.html.ep index c278a37..f391259 100644 --- a/templates/headers/_display_headers.html.ep +++ b/templates/headers/_display_headers.html.ep @@ -1,42 +1,37 @@ % 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 - + %= 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->('subject'); +
- %= $sort_param->('subject'); +
+ %= $sort_param->('size'); +
- %= $sort_param->('size'); + + - % foreach my $msgnum ($first_item .. $last_item) { % my $msg = $msgs->[$msgnum - $first_item]; %= tag tr => (class => $msg->{new} ? 'new-mail' : '') => (id => $msg->{mid}) => begin - + - - - - + @@ -93,4 +107,5 @@ % } +
- %= ucfirst l 'nr' + + No. +
- %= $sort_param->('date'); + %# $sort_param->('status'); - % if ($folder ne "SENT") { - %= $sort_param->('sender'); - % } - % else { +
+ %= $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' @@ -48,44 +43,63 @@ % } % end -
+ %= $msgnum - %= ucfirst($msg->{is_multipart} ? l('yes') : l('no')); - - % 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}; +
+ + + +
+ % 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')
-- cgit v1.2.3