diff -r 0df70b8735e3 -r 006e82a1bcd0 templates/index.html.ep --- a/templates/index.html.ep Sun Aug 03 17:35:01 2014 +0200 +++ b/templates/index.html.ep Sun Aug 03 17:40:13 2014 +0200 @@ -11,14 +11,20 @@ % foreach my $crash(@$files) { - - %= t td => $crash->{product} - %= t td => $crash->{version} - %= t td => $crash->{user} - %= t td => (style => "font-family:monospace;") => begin - %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid}) + %= t tr => begin + %= t td => $crash->{product} + %= t td => $crash->{version} + %= t td => $crash->{user} + %= t td => (style => "font-family:monospace;") => begin + %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid}) + % end + %= t td => $crash->{date}->strftime("%F %T") % end - %= t td => $crash->{date}->strftime("%F %T") - % } % end +% if($pager->first_page != $pager->last_page) { + %= t ul => (class => "pagination") => begin + % my $url = Mojo::URL->new->query({ page => '{page}'}); + %= pagination($pager->current_page, $pager->last_page => $url); + % end +% }