| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Mon, 04 Aug 2014 15:45:02 +0200 | |
| changeset 33 | da690d68c1ff |
| parent 29 | 006e82a1bcd0 |
| child 36 | 703f1af889d1 |
| permissions | -rw-r--r-- |
| 0 | 1 |
% title 'Latest crashs'; |
2 |
% layout 'main'; |
|
3 |
%= t table => (class => 'table table-striped table-bordered table-condensed') => begin |
|
4 |
<thead> |
|
5 |
<tr> |
|
|
24
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
0
diff
changeset
|
6 |
<th>Product</th> |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
0
diff
changeset
|
7 |
<th>Version</th> |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
0
diff
changeset
|
8 |
<th>UserID</th> |
|
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
0
diff
changeset
|
9 |
<th>UUID</th> |
| 0 | 10 |
<th>Date</th> |
11 |
</tr> |
|
12 |
</thead> |
|
|
24
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
0
diff
changeset
|
13 |
% foreach my $crash(@$files) {
|
| 29 | 14 |
%= t tr => begin |
15 |
%= t td => $crash->{product}
|
|
16 |
%= t td => $crash->{version}
|
|
17 |
%= t td => $crash->{user}
|
|
18 |
%= t td => (style => "font-family:monospace;") => begin |
|
19 |
%= link_to $crash->{uuid} => url_for('report', uuid => $crash->{uuid})
|
|
20 |
% end |
|
21 |
%= t td => $crash->{date}->strftime("%F %T")
|
|
|
24
b69b7aa98a1d
Add basic SQL Storage
Vincent Tondellier <tonton+hg@team1664.org>
parents:
0
diff
changeset
|
22 |
% end |
| 0 | 23 |
% } |
24 |
% end |
|
| 29 | 25 |
% if($pager->first_page != $pager->last_page) {
|
26 |
%= t ul => (class => "pagination") => begin |
|
27 |
% my $url = Mojo::URL->new->query({ page => '{page}'});
|
|
28 |
%= pagination($pager->current_page, $pager->last_page => $url); |
|
29 |
% end |
|
30 |
% } |