templates/reports/_list.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Sun, 14 Feb 2016 20:24:11 +0100
changeset 97 f68abe1d7358
parent 85 dbbd323f86ae
permissions -rw-r--r--
Fix race condition in CrashGroup::find_or_create by using constraint and upsert (for pg > 9.5) or table lock
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
85
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     1
%= t table => (class => 'table table-striped table-hover table-bordered table-condensed') => begin
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     2
<thead>
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     3
  <tr>
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     4
    <th>Product</th>
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     5
    <th>Version</th>
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     6
    <th>UUID</th>
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     7
    % foreach my $extra_col(@$extra_columns) {
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     8
    %= t th => $extra_col->{name}
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     9
    % }
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    10
    <th>Date</th>
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    11
  </tr>
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    12
</thead>
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    13
% foreach my $crash(@$crashs) {
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    14
  %= t tr => begin
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    15
    %= t td => $crash->{p_name}
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    16
    %= t td => ($crash->{p_version} or "")
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    17
    %= t td => (style => "font-family:monospace;") => begin
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    18
      %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    19
    % end
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    20
    % foreach my $extra_col(@$extra_columns) {
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    21
    %= t td => $crash->{$extra_col->{id}}
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    22
    % }
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    23
    %= t td => date_from_db_utc($crash->{crash_time})
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    24
  % end
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    25
% }
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    26
% end
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    27
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    28
% if($pager->first_page != $pager->last_page) {
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    29
  %= bootstrap_pagination($pager->current_page, $pager->last_page);
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    30
% }