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