From 1229bb6a838e96eb52be7aa1cac8d692746bc783 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 17 Aug 2023 11:36:55 +0200 Subject: convert to bulma css framework --- templates/displayheaders/_main_table.html.ep | 115 +++++++-------------------- 1 file changed, 27 insertions(+), 88 deletions(-) (limited to 'templates/displayheaders/_main_table.html.ep') diff --git a/templates/displayheaders/_main_table.html.ep b/templates/displayheaders/_main_table.html.ep index 06bbbfc..e06e925 100644 --- a/templates/displayheaders/_main_table.html.ep +++ b/templates/displayheaders/_main_table.html.ep @@ -9,104 +9,43 @@ % end - +
-
- - - - -% } - -
- %= $sort_param->('subject'); -
- - - - - - - - - - - % foreach my $msgnum ($pgn->{first_item} .. $pgn->{last_item}) { % my $msg = $msgs->[$msgnum - $pgn->{first_item}]; - %= tag tr => (class => $msg->{unread} ? 'new-mail' : '') => (id => $msg->{message_handle}) => begin - - - - - - +
+ %= check_box mail => $msg->{message_handle} => (form => 'move-mail') => (class => 'jwm-mail-checkbox') +
% 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->('size'); - - -
+ %= tag div => (class => $msg->{unread} ? 'media jwm-new-mail' : 'media') => (id => $msg->{message_handle}) => begin +
%= $msgnum + 1 -
-
- - - -
- % my $date = $v->parse_iso_date($msg->{head}{date}); - %= join('/', $date->{mday}, $date->{month}, $date->{year}) . " $date->{hour}:$date->{min}"; -
- -
- <%= $msg->{head}{sender}[0]{display_name} || $msg->{head}{sender}[0]{address} || - $msg->{head}{from}[0]{display_name} || $msg->{head}{from}[0]{address}; %> -
+
-
- %= link_to $msg->{head}{subject} || '_' => read => {id => $msg->{message_handle}} +
+
+
+ <%= $msg->{head}{sender}[0]{display_name} || $msg->{head}{sender}[0]{address} || + $msg->{head}{from}[0]{display_name} || $msg->{head}{from}[0]{address}; %> +
+ +
+ % my $date = $v->parse_iso_date($msg->{head}{date}); + %= join('/', $date->{mday}, $date->{month}, $date->{year}) . " $date->{hour}:$date->{min}"; +
+ +
+ %= link_to $msg->{head}{subject} || '_' => read => {id => $msg->{message_handle}} +
+ +
+ %= $v->print_sizes10($msg->{byte_size}); +
-
-
- %= $v->print_sizes10($msg->{byte_size}); - - %= check_box mail => $msg->{message_handle} => (form => 'move-mail') -
+ -- cgit v1.2.3