web/views/filter_job_class.erb
<header class="row header">
<div class="col-sm-12">
<h3>
<%= "<b>#{@total_dead}</b> dead #{@total_dead == 1 ? 'job' : 'jobs'}" %>
<%= " of <b>#{@req_job_class}</b> class" unless @req_job_class == "all" %>
</h3>
</div>
</header>
<table class="table table-striped table-bordered table-white">
<thead>
<tr>
<th style="width: 20%"><%= t('Error') %></th>
<th style="width: 10%"><%= t('All') %></th>
<th style="width: 10%"><%= t('1 hour') %></th>
<th style="width: 10%"><%= t('3 hours') %></th>
<th style="width: 10%"><%= t('1 day') %></th>
<th style="width: 10%"><%= t('3 days') %></th>
<th style="width: 10%"><%= t('1 week') %></th>
<th style="width: 10%"><%= t('Older') %></th>
</tr>
</thead>
<% @distribution.each do |group, bucket_counts| %>
<tr>
<td><a href='<%= "#{root_path}undertaker/morgue/#{@req_job_class}/#{group}/all/total_dead" %>'><%= group %></a></td>
<td><a href='<%= "#{root_path}undertaker/filter/#{@req_job_class}/#{group}/total_dead" %>'><%= bucket_counts['total_dead'] %></a></td>
<td><a href='<%= "#{root_path}undertaker/filter/#{@req_job_class}/#{group}/1_hour" %>'><%= bucket_counts['1_hour']%></a></td>
<td><a href='<%= "#{root_path}undertaker/filter/#{@req_job_class}/#{group}/3_hours" %>'><%= bucket_counts['3_hours']%></a></td>
<td><a href='<%= "#{root_path}undertaker/filter/#{@req_job_class}/#{group}/1_day" %>'><%= bucket_counts['1_day']%></a></td>
<td><a href='<%= "#{root_path}undertaker/filter/#{@req_job_class}/#{group}/3_days" %>'><%= bucket_counts['3_days']%></a></td>
<td><a href='<%= "#{root_path}undertaker/filter/#{@req_job_class}/#{group}/1_week" %>'><%= bucket_counts['1_week']%></a></td>
<td><a href='<%= "#{root_path}undertaker/filter/#{@req_job_class}/#{group}/older" %>'><%= bucket_counts['older']%></a></td>
</tr>
<% end %>
</table>