templates/group/_stats.html.ep
changeset 88 c82f5589db11
equal deleted inserted replaced
87:03caeafba2ff 88:c82f5589db11
       
     1 <a data-toggle="collapse" href="#stats-by-product-and-version"><h3>Crashs by product and version</h3></a>
       
     2 <div id="stats-by-product-and-version" class="collapse in">
       
     3 %= t table => (class => 'table table-striped table-hover table-bordered table-condensed') => begin
       
     4 <thead>
       
     5   <tr>
       
     6     <th>Product</th>
       
     7     <th>Version</th>
       
     8     <th>Count</th>
       
     9   </tr>
       
    10 </thead>
       
    11 <tbody>
       
    12 % my $max;
       
    13 % foreach my $stat(@{$stats_by_product_and_version}) {
       
    14   % $max = $stat->{crash_count} unless defined($max);
       
    15   %= t tr => begin
       
    16     %= t td => $stat->{product_name}
       
    17     %= t td => $stat->{version}
       
    18     %= t td => begin
       
    19       %= stats_bar($stat->{crash_count}, $max)
       
    20     % end
       
    21   % end
       
    22 % }
       
    23 </tbody>
       
    24 % end
       
    25 </div>
       
    26