templates/reports/_list.html.ep
changeset 108 e4e5cfaf5814
parent 107 6f411821b12b
child 109 3b95550f4189
equal deleted inserted replaced
107:6f411821b12b 108:e4e5cfaf5814
     1 %= t table => (class => 'table table-striped table-hover table-bordered table-condensed') => begin
       
     2 <thead>
       
     3   <tr>
       
     4     <th>Product</th>
       
     5     <th>Version</th>
       
     6     <th>UUID</th>
       
     7     % foreach my $extra_col(@$extra_columns) {
       
     8     %= t th => $extra_col->{name}
       
     9     % }
       
    10     <th>Date</th>
       
    11   </tr>
       
    12 </thead>
       
    13 % foreach my $crash(@$crashs) {
       
    14   %= t tr => begin
       
    15     %= t td => $crash->{p_name}
       
    16     %= t td => ($crash->{p_version} or "")
       
    17     %= t td => (style => "font-family:monospace;") => begin
       
    18       %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
       
    19     % end
       
    20     % foreach my $extra_col(@$extra_columns) {
       
    21     %= t td => $crash->{$extra_col->{id}}
       
    22     % }
       
    23     %= t td => date_from_db_utc($crash->{crash_time})
       
    24   % end
       
    25 % }
       
    26 % end
       
    27 
       
    28 % if($pager->first_page != $pager->last_page) {
       
    29   %= bootstrap_pagination($pager->current_page, $pager->last_page);
       
    30 % }