templates/index.html.ep
changeset 29 006e82a1bcd0
parent 24 b69b7aa98a1d
child 36 703f1af889d1
equal deleted inserted replaced
28:0df70b8735e3 29:006e82a1bcd0
     9     <th>UUID</th>
     9     <th>UUID</th>
    10     <th>Date</th>
    10     <th>Date</th>
    11   </tr>
    11   </tr>
    12 </thead>
    12 </thead>
    13 % foreach my $crash(@$files) {
    13 % foreach my $crash(@$files) {
    14 <tr>
    14   %= t tr => begin
    15   %= t td => $crash->{product}
    15     %= t td => $crash->{product}
    16   %= t td => $crash->{version}
    16     %= t td => $crash->{version}
    17   %= t td => $crash->{user}
    17     %= t td => $crash->{user}
    18   %= t td => (style => "font-family:monospace;") => begin
    18     %= t td => (style => "font-family:monospace;") => begin
    19     %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
    19       %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
       
    20     % end
       
    21     %= t td => $crash->{date}->strftime("%F %T")
    20   % end
    22   % end
    21   %= t td => $crash->{date}->strftime("%F %T")
       
    22 </tr>
       
    23 % }
    23 % }
    24 % end
    24 % end
       
    25 % if($pager->first_page != $pager->last_page) {
       
    26   %= t ul => (class => "pagination") => begin
       
    27     % my $url = Mojo::URL->new->query({ page => '{page}'});
       
    28     %= pagination($pager->current_page, $pager->last_page => $url);
       
    29   % end
       
    30 % }