templates/index.html.ep
changeset 29 006e82a1bcd0
parent 24 b69b7aa98a1d
child 36 703f1af889d1
--- 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
+% }