templates/index.html.ep
changeset 67 9e95be0b1b8c
parent 47 b8a7a5ec6461
child 78 0ebef32c34af
--- a/templates/index.html.ep	Fri May 08 22:29:20 2015 +0200
+++ b/templates/index.html.ep	Sat May 09 23:17:47 2015 +0200
@@ -5,8 +5,10 @@
   <tr>
     <th>Product</th>
     <th>Version</th>
-    <th>UserID</th>
     <th>UUID</th>
+    % foreach my $extra_col(@$extra_columns) {
+      %= t th => $extra_col->{name}
+    % }
     <th>Date</th>
   </tr>
 </thead>
@@ -14,11 +16,13 @@
   %= 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")
+    % foreach my $extra_col(@$extra_columns) {
+      %= t td => $crash->{$extra_col->{id}}
+    % }
+    %= t td => $crash->{date}->set_time_zone('UTC')->set_time_zone('local')->strftime("%F %T")
   % end
 % }
 % end