| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Sun, 14 Feb 2016 23:56:24 +0100 | |
| changeset 104 | b75005d8b002 |
| parent 85 | dbbd323f86ae |
| permissions | -rw-r--r-- |
|
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 |
% } |