templates/index.html.ep
changeset 26 debc3c566994
parent 24 b69b7aa98a1d
child 29 006e82a1bcd0
equal deleted inserted replaced
25:1a1cf5c35cfb 26:debc3c566994
     1 % title 'Latest crashs';
     1 % title 'Latest crashs';
     2 % layout 'main';
     2 % layout 'main';
     3 %= t table => (class => 'table table-striped table-bordered table-condensed') => begin
     3 %= t table => (class => 'table table-striped table-bordered table-condensed') => begin
     4 <thead>
     4 <thead>
     5   <tr>
     5   <tr>
     6     <th>Signature</th>
     6     <th>Product</th>
       
     7     <th>Version</th>
       
     8     <th>UserID</th>
       
     9     <th>UUID</th>
     7     <th>Date</th>
    10     <th>Date</th>
     8   </tr>
    11   </tr>
     9 </thead>
    12 </thead>
    10 % foreach my $file(@$files) {
    13 % foreach my $crash(@$files) {
    11 <tr>
    14 <tr>
    12   <td><%= link_to $file->{uuid} => url_for('report', uuid => $file->{uuid}) =%></td>
    15   %= t td => $crash->{product}
    13   %= t td => POSIX::strftime("%F %T", localtime($file->{date}))
    16   %= t td => $crash->{version}
       
    17   %= t td => $crash->{user}
       
    18   %= t td => (style => "font-family:monospace;") => begin
       
    19     %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
       
    20   % end
       
    21   %= t td => $crash->{date}->strftime("%F %T")
    14 </tr>
    22 </tr>
    15 % }
    23 % }
    16 % end
    24 % end