lib/CrashTest/files/templates/reports/_list.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Sun, 20 Nov 2016 20:57:40 +0100
changeset 116 39449f7dab99
parent 108 e4e5cfaf5814
permissions -rw-r--r--
Adding bug links (column and search), enabled by default Editing is not implemented yet, use sql to insert bugs
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
    % }
116
39449f7dab99 Adding bug links (column and search), enabled by default
Vincent Tondellier <tonton+hg@team1664.org>
parents: 108
diff changeset
    10
    <th>Bugs</th>
85
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    11
    <th>Date</th>
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    12
  </tr>
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    13
</thead>
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    14
% foreach my $crash(@$crashs) {
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    15
  %= t tr => begin
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    16
    %= t td => $crash->{p_name}
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    17
    %= t td => ($crash->{p_version} or "")
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    18
    %= t td => (style => "font-family:monospace;") => begin
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    19
      %= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    20
    % end
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    21
    % foreach my $extra_col(@$extra_columns) {
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    22
    %= t td => $crash->{$extra_col->{id}}
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    23
    % }
116
39449f7dab99 Adding bug links (column and search), enabled by default
Vincent Tondellier <tonton+hg@team1664.org>
parents: 108
diff changeset
    24
    %= t td => bug_links($crash->{bug_links})
85
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    25
    %= t td => date_from_db_utc($crash->{crash_time})
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
% end
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    29
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    30
% if($pager->first_page != $pager->last_page) {
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    31
  %= bootstrap_pagination($pager->current_page, $pager->last_page);
dbbd323f86ae Move report templates
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    32
% }