--- a/templates/index.html.ep Sun Sep 27 22:45:40 2015 +0200
+++ b/templates/index.html.ep Wed Nov 04 17:43:00 2015 +0100
@@ -7,25 +7,26 @@
<th>Version</th>
<th>UUID</th>
% foreach my $extra_col(@$extra_columns) {
- %= t th => $extra_col->{name}
+ %= t th => $extra_col->{name}
% }
<th>Date</th>
</tr>
</thead>
-% foreach my $crash(@$files) {
+% foreach my $crash(@$crashs) {
%= t tr => begin
- %= t td => $crash->{product}
- %= t td => $crash->{version}
+ %= t td => $crash->{p_name}
+ %= t td => ($crash->{p_version} or "")
%= t td => (style => "font-family:monospace;") => begin
%= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
% end
% foreach my $extra_col(@$extra_columns) {
- %= t td => $crash->{$extra_col->{id}}
+ %= t td => $crash->{$extra_col->{id}}
% }
- %= t td => $crash->{date}->set_time_zone('UTC')->set_time_zone('local')->strftime("%F %T")
+ %= t td => date_from_db_utc($crash->{crash_time})
% end
% }
% end
+
% if($pager->first_page != $pager->last_page) {
%= bootstrap_pagination($pager->current_page, $pager->last_page);
% }