summaryrefslogtreecommitdiff
path: root/templates/displayheaders/_pagination2.html.ep
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-03-10 13:54:57 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-03-10 13:54:57 +0100
commitfcf5549584b69e62b6c2f0eb919f6799c7904211 (patch)
treee5f0e480af0f39f1c0f457ea0aca8d33f8fb4d0b /templates/displayheaders/_pagination2.html.ep
parentdf59f9dec32d7f8f08706fd3eb5b784deaa0abfc (diff)
Proper recursive rendering of mails to html
1. Added raw mode to model 2. Added raw route 3. Moved readmail view parts to RenderMail plugin 4. Renamed displayheaders partial templates
Diffstat (limited to 'templates/displayheaders/_pagination2.html.ep')
-rw-r--r--templates/displayheaders/_pagination2.html.ep37
1 files changed, 37 insertions, 0 deletions
diff --git a/templates/displayheaders/_pagination2.html.ep b/templates/displayheaders/_pagination2.html.ep
new file mode 100644
index 0000000..8bff0bf
--- /dev/null
+++ b/templates/displayheaders/_pagination2.html.ep
@@ -0,0 +1,37 @@
+%= form_for '' => (class => 'pure-form') => begin
+ <a href="<%= url_with->query({start => $pgn->{first_page}[0]}) %>">
+ <img src="/first.gif" alt="<%= l('first') . ' ' . l 'page' %>">
+ </a>
+ <a href="<%= url_with->query({start => $pgn->{prev_page}[0]}) %>">
+ <img src="/left.gif" alt="<%= l('previous') . ' ' . l 'page' %>">
+ </a>
+
+ <div style="white-space: nowrap">
+ [
+%= 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}
+ ]
+ </div>
+
+% my $h = $c->req->query_params->to_hash;
+% while (my ($k, $v) = each %$h) {
+% if ($k ne 'start') {
+%= hidden_field $k => $v
+% }
+% }
+
+ <a href="<%= url_with->query({start => $pgn->{next_page}[0]}) %>">
+ <img src="/right.gif" alt="<%= l('next') . ' ' . l 'page' %>">
+ </a>
+ <a href="<%= url_with->query({start => $pgn->{last_page}[0]}) %>">
+ <img src="/last.gif" alt="<%= l('last') . ' ' . l('page') %>">
+ </a>
+% end