templates/groups/index.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Sun, 14 Feb 2016 23:56:24 +0100
changeset 104 b75005d8b002
parent 100 4dae01f2beee
permissions -rw-r--r--
Display dates in human format
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
88
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     1
% title 'Top crashs';
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     2
% layout 'main';
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     3
%= t table => (class => 'table table-striped table-hover table-bordered table-condensed') => begin
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     4
<thead>
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     5
  <tr>
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     6
    <th>Title</th>
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     7
    <th>Count</th>
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     8
    <th>First version seen</th>
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     9
    <th>Last version seen</th>
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    10
    <th>Products</th>
100
4dae01f2beee Allow extra columns in group index, and split search columns
Vincent Tondellier <tonton+hg@team1664.org>
parents: 88
diff changeset
    11
    % foreach my $extra_col(@$extra_columns) {
4dae01f2beee Allow extra columns in group index, and split search columns
Vincent Tondellier <tonton+hg@team1664.org>
parents: 88
diff changeset
    12
    %= t th => $extra_col->{name}
4dae01f2beee Allow extra columns in group index, and split search columns
Vincent Tondellier <tonton+hg@team1664.org>
parents: 88
diff changeset
    13
    % }
88
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    14
  </tr>
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    15
</thead>
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    16
% foreach my $crash(@$crashs) {
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    17
  %= t tr => begin
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    18
    %= t td => begin
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    19
      %= link_to $crash->{title} => url_for('group', uuid => $crash->{uuid})
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    20
    % end
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    21
    %= t td => $crash->{crash_count}
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    22
    %= t td => $crash->{first_version}
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    23
    %= t td => $crash->{last_version}
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    24
    %= t td => $crash->{product_names}
100
4dae01f2beee Allow extra columns in group index, and split search columns
Vincent Tondellier <tonton+hg@team1664.org>
parents: 88
diff changeset
    25
    % foreach my $extra_col(@$extra_columns) {
4dae01f2beee Allow extra columns in group index, and split search columns
Vincent Tondellier <tonton+hg@team1664.org>
parents: 88
diff changeset
    26
    %= t td => $crash->{$extra_col->{id}}
4dae01f2beee Allow extra columns in group index, and split search columns
Vincent Tondellier <tonton+hg@team1664.org>
parents: 88
diff changeset
    27
    % }
88
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    28
  % end
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    29
% }
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    30
% end
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    31
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    32
% if($pager->first_page != $pager->last_page) {
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    33
  %= bootstrap_pagination($pager->current_page, $pager->last_page);
c82f5589db11 Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    34
% }