From 1cfad71608a6947d331f2de3b1f71813c33da392 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sat, 4 Mar 2023 18:13:10 +0100 Subject: better mobile support for displayheaders --- templates/headers/_display_bot_nav.html.ep | 6 ++-- templates/headers/_display_headers.html.ep | 30 ++++++++++---------- templates/headers/_display_top_nav.html.ep | 4 +-- templates/headers/_pagination2.html.ep | 45 ++++++++++++++++++++---------- 4 files changed, 50 insertions(+), 35 deletions(-) (limited to 'templates/headers') diff --git a/templates/headers/_display_bot_nav.html.ep b/templates/headers/_display_bot_nav.html.ep index 7be2832..9dc808a 100644 --- a/templates/headers/_display_bot_nav.html.ep +++ b/templates/headers/_display_bot_nav.html.ep @@ -1,15 +1,15 @@
-
+
%= include 'headers/_pagination1'
-
+
-
+
% if (grep {$_ ne $folder} @$mail_folders) { %= form_for move => (id => 'move-mail') => (class => 'pure-form') => begin
diff --git a/templates/headers/_display_headers.html.ep b/templates/headers/_display_headers.html.ep index 870589c..6c00d0b 100644 --- a/templates/headers/_display_headers.html.ep +++ b/templates/headers/_display_headers.html.ep @@ -22,12 +22,12 @@ %# $sort_param->('status'); -
+
%= $sort_param->('date');
% if ($folder ne "SENT") { -
+
%= $sort_param->('sender');
% } @@ -45,17 +45,17 @@ % } -
+
%= $sort_param->('subject');
-
- %= $sort_param->('size'); -
-
+ + %= $sort_param->('size'); + + @@ -76,31 +76,31 @@ -
+
% my $date = 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}}
-
- %= print_sizes10 $msg->{byte_size}; -
-
+ + %= print_sizes10 $msg->{byte_size}; + + %= check_box mail => $msg->{message_handle} => (form => 'move-mail') diff --git a/templates/headers/_display_top_nav.html.ep b/templates/headers/_display_top_nav.html.ep index 6279f5f..ca5001b 100644 --- a/templates/headers/_display_top_nav.html.ep +++ b/templates/headers/_display_top_nav.html.ep @@ -1,6 +1,6 @@
-
+
-
+
%= form_for '' => (class => 'pure-form') => begin %= label_for search => ucfirst(l 'search') %= search_field search => (size => 8) diff --git a/templates/headers/_pagination2.html.ep b/templates/headers/_pagination2.html.ep index eef2abe..8bff0bf 100644 --- a/templates/headers/_pagination2.html.ep +++ b/templates/headers/_pagination2.html.ep @@ -1,22 +1,37 @@ -
- %= form_for '' => (class => 'pure-form') => begin - <%= l('first') . ' ' . l 'page' %> - <%= l('previous') . ' ' . l 'page' %> - [ - %= label_for custompage => ucfirst l 'page' - %= number_field start => (id => 'custompage') => (size => 3) => (placeholder => $pgn->{current_page}+1) - %= l 'of' - %= $pgn->{total_pages} - ] +%= form_for '' => (class => 'pure-form') => begin + + <%= l('first') . ' ' . l 'page' %> + + + <%= l('previous') . ' ' . l 'page' %> + + +
+ [ +%= label_for custompage => ucfirst l('page') => (style => 'display: inline') + <%= number_field start + => (id => 'custompage') + => (size => 3) + => (placeholder => $pgn->{current_page}+1) + => (min => 1) + => (max => $pgn->{total_pages} + => (style => 'display: inline')) %> +%= l 'of' +%= $pgn->{total_pages} + ] +
% my $h = $c->req->query_params->to_hash; % while (my ($k, $v) = each %$h) { % if ($k ne 'start') { - %= hidden_field $k => $v +%= hidden_field $k => $v % } % } - <%= l('next') . ' ' . l 'page' %> - <%= l('last') . ' ' . l('page') %> - % end -
+ + <%= l('next') . ' ' . l 'page' %> + + + <%= l('last') . ' ' . l('page') %> + +% end -- cgit v1.2.3