templates/index.html.ep
changeset 67 9e95be0b1b8c
parent 47 b8a7a5ec6461
child 78 0ebef32c34af
equal deleted inserted replaced
66:ca4fa5dc09da 67:9e95be0b1b8c
     3 %= t table => (class => 'table table-striped table-hover table-bordered table-condensed') => begin
     3 %= t table => (class => 'table table-striped table-hover table-bordered table-condensed') => begin
     4 <thead>
     4 <thead>
     5   <tr>
     5   <tr>
     6     <th>Product</th>
     6     <th>Product</th>
     7     <th>Version</th>
     7     <th>Version</th>
     8     <th>UserID</th>
       
     9     <th>UUID</th>
     8     <th>UUID</th>
       
     9     % foreach my $extra_col(@$extra_columns) {
       
    10       %= t th => $extra_col->{name}
       
    11     % }
    10     <th>Date</th>
    12     <th>Date</th>
    11   </tr>
    13   </tr>
    12 </thead>
    14 </thead>
    13 % foreach my $crash(@$files) {
    15 % foreach my $crash(@$files) {
    14   %= t tr => begin
    16   %= t tr => begin
    15     %= t td => $crash->{product}
    17     %= t td => $crash->{product}
    16     %= t td => $crash->{version}
    18     %= t td => $crash->{version}
    17     %= t td => $crash->{user}
       
    18     %= t td => (style => "font-family:monospace;") => begin
    19     %= t td => (style => "font-family:monospace;") => begin
    19       %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
    20       %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
    20     % end
    21     % end
    21     %= t td => $crash->{date}->strftime("%F %T")
    22     % foreach my $extra_col(@$extra_columns) {
       
    23       %= t td => $crash->{$extra_col->{id}}
       
    24     % }
       
    25     %= t td => $crash->{date}->set_time_zone('UTC')->set_time_zone('local')->strftime("%F %T")
    22   % end
    26   % end
    23 % }
    27 % }
    24 % end
    28 % end
    25 % if($pager->first_page != $pager->last_page) {
    29 % if($pager->first_page != $pager->last_page) {
    26   %= bootstrap_pagination($pager->current_page, $pager->last_page);
    30   %= bootstrap_pagination($pager->current_page, $pager->last_page);