templates/index.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Thu, 28 Aug 2014 00:54:41 +0200
changeset 49 c088af64f31f
parent 47 b8a7a5ec6461
child 67 9e95be0b1b8c
permissions -rw-r--r--
Drop dependency on aliased (only used in 1 file)

% 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);
% }