--- 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 @@
</tr>
</thead>
% foreach my $crash(@$files) {
-<tr>
- %= 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")
-</tr>
% }
% 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
+% }