templates/index.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Mon, 09 Feb 2015 00:18:12 +0100
changeset 62 b3786f800c59
parent 47 b8a7a5ec6461
child 67 9e95be0b1b8c
permissions -rw-r--r--
Fix default search

% title 'Latest crashs';
% layout 'main';
%= t table => (class => 'table table-striped table-hover table-bordered table-condensed') => begin
<thead>
  <tr>
    <th>Product</th>
    <th>Version</th>
    <th>UserID</th>
    <th>UUID</th>
    <th>Date</th>
  </tr>
</thead>
% foreach my $crash(@$files) {
  %= t tr => begin
    %= t td => $crash->{product}
    %= t td => $crash->{version}
    %= t td => $crash->{user}
    %= t td => (style => "font-family:monospace;") => begin
      %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
    % end
    %= t td => $crash->{date}->strftime("%F %T")
  % end
% }
% end
% if($pager->first_page != $pager->last_page) {
  %= bootstrap_pagination($pager->current_page, $pager->last_page);
% }