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/_bot_nav.html.ep | 53 ++++++------ templates/displayheaders/_folders.html.ep | 49 +++++++---- templates/displayheaders/_main_table.html.ep | 115 ++++++-------------------- templates/displayheaders/_pagination1.html.ep | 12 +-- templates/displayheaders/_pagination3.html.ep | 10 +-- templates/displayheaders/_top_nav.html.ep | 71 ++++++++++------ 6 files changed, 142 insertions(+), 168 deletions(-) (limited to 'templates/displayheaders') diff --git a/templates/displayheaders/_bot_nav.html.ep b/templates/displayheaders/_bot_nav.html.ep index 454941b..a6d089c 100644 --- a/templates/displayheaders/_bot_nav.html.ep +++ b/templates/displayheaders/_bot_nav.html.ep @@ -1,36 +1,39 @@ -
+
-
-
+
%= include 'displayheaders/_pagination1' -
+
+ +
% if (grep {$_ ne $folder} @$mail_folders) { - %= form_for move => (id => 'move-mail') => (class => 'pure-form') => begin -
- %= label_for 'select-folder' => l('move to') - %= select_field folder => [map { $_ ? $_ : l 'Home' } grep {$_ ne $folder} @$mail_folders] => (id => 'select-folder') - %= csrf_field - %= submit_button l('move') => (class => 'pure-button') -
+ %= form_for move => (id => 'move-mail') => begin + +
+
+ %= label_for 'select-folder' => l('move to') => (class => 'label') +
+
+
+
+
+ %= select_field folder => [map { $_ ? $_ : l 'Home' } grep {$_ ne $folder} @$mail_folders] +
+
+ %= csrf_field +
+ %= submit_button l('move') => (class => 'button') +
+
+
+
+ % end % }
-
-
+
- +
- - diff --git a/templates/displayheaders/_folders.html.ep b/templates/displayheaders/_folders.html.ep index b341768..457a838 100644 --- a/templates/displayheaders/_folders.html.ep +++ b/templates/displayheaders/_folders.html.ep @@ -1,29 +1,44 @@ -
+
-
-
-

- <%= l('[_1] of [_2] messages', $pgn->{this_page}[1] - $pgn->{this_page}[0], $pgn->{total_items}) %>\ - <%= l(', [_1] new', $total_new_mails) if $total_new_mails > 0 =%> - <%= l(' - mailbox size: [_1]', $v->print_sizes10($total_size)) if $total_size %> -

+
+
+ <%= l('[_1] of [_2] messages', $pgn->{this_page}[1] - $pgn->{this_page}[0], $pgn->{total_items}) %> + + <%= l('[_1] new', $total_new_mails) if $total_new_mails > 0 =%> + + + % if ($total_size) { + %= l('mailbox size: ') + %= $v->print_sizes10($total_size) + % } + +
+
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') -
+ diff --git a/templates/displayheaders/_pagination1.html.ep b/templates/displayheaders/_pagination1.html.ep index a32afe1..6a22ba5 100644 --- a/templates/displayheaders/_pagination1.html.ep +++ b/templates/displayheaders/_pagination1.html.ep @@ -1,14 +1,14 @@ diff --git a/templates/displayheaders/_pagination3.html.ep b/templates/displayheaders/_pagination3.html.ep index fe573ce..846a285 100644 --- a/templates/displayheaders/_pagination3.html.ep +++ b/templates/displayheaders/_pagination3.html.ep @@ -1,6 +1,6 @@ % my $make_link_num = begin % my ($txt, $to) = @_; -%= link_to $txt => url_with->query({start => $to}) => (class => (param('start')//0) == $to ? 'current' : '') +%= link_to $txt => url_with->query({start => $to}) => (class => (param('start')//0) == $to ? 'pagination-link is-current' : 'pagination-link') % end % my $nbh = begin @@ -15,13 +15,13 @@ % } % end -