Project

General

Profile

Download (1.47 KB) Statistics
| Branch: | Tag: | Revision:
<table class="table table-bordered table-striped">
<tr>
<% unless params[:host_id] -%>
<th><%= sort :host %></th>
<% end -%>
<th><%= sort :reported, :as => "Last report" %></th>
<th class="small"><%= sort :applied %></th>
<th class="small"><%= sort :restarted %></th>
<th class="small"><%= sort :failed %></th>
<th class="small"><%= sort :failed_restarts, :as => "Restart<br>Failures" %></th>
<th class="small"><%= sort :skipped %></th>
<th class="small"><%= sort :pending %></th>
<th class="small"></th>
</tr>
<% for report in @reports %>
<tr>
<% unless params[:host_id] -%>
<td><%= link_to h(report.host), host_reports_path(report.host) %></td>
<% end -%>
<td><%= reported_at_column(report) %></td>
<td><%= report_event_column(report.applied, "label-info") %></td>
<td><%= report_event_column(report.restarted, "label-info") %></td>
<td><%= report_event_column(report.failed, "label-important") %></td>
<td><%= report_event_column(report.failed_restarts, "label-warning") %></td>
<td><%= report_event_column(report.skipped, "label-info") %></td>
<td><%= report_event_column(report.pending, "label-info") %></td>
<td align="right">
<%= display_delete_if_authorized hash_for_report_path(:id => report.id), :confirm => "Delete report for #{report.host.name}?" %>
</td>
</tr>
<% end %>
</table>
<%= page_entries_info @reports %>
<%= will_paginate @reports %>
(1-1/6)