| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Sun, 14 Feb 2016 20:24:11 +0100 | |
| changeset 97 | f68abe1d7358 |
| parent 88 | c82f5589db11 |
| permissions | -rw-r--r-- |
|
88
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
1 |
<a data-toggle="collapse" href="#stats-by-product-and-version"><h3>Crashs by product and version</h3></a> |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
2 |
<div id="stats-by-product-and-version" class="collapse in"> |
|
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>Product</th> |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
7 |
<th>Version</th> |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
8 |
<th>Count</th> |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
9 |
</tr> |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
10 |
</thead> |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
11 |
<tbody> |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
12 |
% my $max; |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
13 |
% foreach my $stat(@{$stats_by_product_and_version}) {
|
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
14 |
% $max = $stat->{crash_count} unless defined($max);
|
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
15 |
%= t tr => begin |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
16 |
%= t td => $stat->{product_name}
|
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
17 |
%= t td => $stat->{version}
|
|
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 |
%= stats_bar($stat->{crash_count}, $max)
|
|
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 |
% end |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
22 |
% } |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
23 |
</tbody> |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
24 |
% end |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
25 |
</div> |
|
c82f5589db11
Add first cut of the crash grouping feature
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
26 |