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/_pagination1.html.ep | 5 -- templates/_pagination2.html.ep | 22 ------ templates/error.html.ep | 3 +- templates/headers/_display_bot_nav.html.ep | 53 +++++++------- templates/headers/_display_folders.html.ep | 29 ++++++++ templates/headers/_display_headers.html.ep | 107 ++++++++++++++++------------- templates/headers/_display_top_nav.html.ep | 49 ++++++------- templates/headers/_displayfolders.html.ep | 32 --------- templates/headers/_pagination1.html.ep | 7 ++ templates/headers/_pagination2.html.ep | 22 ++++++ templates/layouts/mainlayout.html.ep | 49 +++++++------ templates/webmail/about.html.ep | 106 ++++++++++++++-------------- templates/webmail/displayheaders.html.ep | 44 ++++-------- templates/webmail/login.html.ep | 69 +++++++------------ templates/webmail/readmail.html.ep | 70 ++++++++++--------- templates/webmail/writemail.html.ep | 61 ++++++++-------- 16 files changed, 351 insertions(+), 377 deletions(-) delete mode 100644 templates/_pagination1.html.ep delete mode 100644 templates/_pagination2.html.ep create mode 100644 templates/headers/_display_folders.html.ep delete mode 100644 templates/headers/_displayfolders.html.ep create mode 100644 templates/headers/_pagination1.html.ep create mode 100644 templates/headers/_pagination2.html.ep (limited to 'templates') diff --git a/templates/_pagination1.html.ep b/templates/_pagination1.html.ep deleted file mode 100644 index 14354c0..0000000 --- a/templates/_pagination1.html.ep +++ /dev/null @@ -1,5 +0,0 @@ -← -↞ -[<%= join(' ', ucfirst l('page'), $current_page, l('of'), $total_pages) %>] -↠ -→ diff --git a/templates/_pagination2.html.ep b/templates/_pagination2.html.ep deleted file mode 100644 index e03dbb0..0000000 --- a/templates/_pagination2.html.ep +++ /dev/null @@ -1,22 +0,0 @@ - <%= l('first') . ' ' . l 'page' %>\ - <%= l('previous') . ' ' . l 'page' %> - -%= form_for '' => begin - [ - %= label_for custompage => ucfirst l 'page' - %= number_field start => (id => 'custompage') => (size => 3) => (placeholder => $current_page) - %= l 'of' - %= $total_pages - ] - -% my $h = $c->req->query_params->to_hash; -% while (my ($k, $v) = each %$h) { -% if ($k ne 'start') { - %= hidden_field $k => $v -% } -% } - -% end - - <%= l('next') . ' ' . l 'page' %> \ - <%= l('last') . ' ' . l('page') %> diff --git a/templates/error.html.ep b/templates/error.html.ep index d120e69..3a1d5e3 100644 --- a/templates/error.html.ep +++ b/templates/error.html.ep @@ -1,4 +1,5 @@ - + + diff --git a/templates/headers/_display_bot_nav.html.ep b/templates/headers/_display_bot_nav.html.ep index ea1ce3c..9064d6e 100644 --- a/templates/headers/_display_bot_nav.html.ep +++ b/templates/headers/_display_bot_nav.html.ep @@ -1,33 +1,26 @@ - - - - - - - - - - - - - - - -
- %= include '_pagination1'; - - : - - - %= form_for move => (id => 'move-mail') => begin - %= label_for 'select-folder' => l('move') . ' ' . l('to') - %= select_field folder => [grep {$_ ne $folder} @$mail_folders] => (id => 'select-folder') - %= csrf_field - %= submit_button l 'move' - % end - -
- +
+ +
+ %= include 'headers/_pagination1' +
+ +
+ + +
+ +
+ %= form_for move => (id => 'move-mail') => (class => 'pure-form') => begin +
+ %= label_for 'select-folder' => l('move') . ' ' . l('to') + %= select_field folder => [grep {$_ ne $folder} @$mail_folders] => (id => 'select-folder') + %= csrf_field + %= submit_button l('move') => (class => 'pure-button') +
+ % end +
+ +