templates/index.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Wed, 04 Nov 2015 17:43:00 +0100
changeset 78 0ebef32c34af
parent 67 9e95be0b1b8c
permissions -rw-r--r--
Refactor everything - change db access method, use Mojo::{Pg,SQLite,...} instead of DBIx::Class - use Minion as job queue - refactor into a non-Lite Mojolicious app

% 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>UUID</th>
    % foreach my $extra_col(@$extra_columns) {
    %= t th => $extra_col->{name}
    % }
    <th>Date</th>
  </tr>
</thead>
% foreach my $crash(@$crashs) {
  %= t tr => begin
    %= t td => $crash->{p_name}
    %= t td => ($crash->{p_version} or "")
    %= t td => (style => "font-family:monospace;") => begin
      %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
    % end
    % foreach my $extra_col(@$extra_columns) {
    %= t td => $crash->{$extra_col->{id}}
    % }
    %= t td => date_from_db_utc($crash->{crash_time})
  % end
% }
% end

% if($pager->first_page != $pager->last_page) {
  %= bootstrap_pagination($pager->current_page, $pager->last_page);
% }