Project

General

Profile

Download (1.47 KB) Statistics
| Branch: | Tag: | Revision:
82e47ae0 Amos Benari
<table class="table table-bordered table-striped">
459e0feb Paul Kelly
<tr>
bd5e3385 Ohad Levy
<% unless params[:host_id] -%>
b0b1ea21 Ohad Levy
<th><%= sort :host %></th>
459e0feb Paul Kelly
<% end -%>
b0b1ea21 Ohad Levy
<th><%= sort :reported, :as => "Last report" %></th>
7f0c5ab7 Amos Benari
<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>
9b41cf08 Ohad Levy
<th class="small"><%= sort :pending %></th>
7f0c5ab7 Amos Benari
<th class="small"></th>
459e0feb Paul Kelly
</tr>
<% for report in @reports %>
056baf6c Amos Benari
<tr>
bd5e3385 Ohad Levy
<% unless params[:host_id] -%>
<td><%= link_to h(report.host), host_reports_path(report.host) %></td>
459e0feb Paul Kelly
<% end -%>
<td><%= reported_at_column(report) %></td>
82e47ae0 Amos Benari
<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>
459e0feb Paul Kelly
<td align="right">
82e47ae0 Amos Benari
<%= display_delete_if_authorized hash_for_report_path(:id => report.id), :confirm => "Delete report for #{report.host.name}?" %>
459e0feb Paul Kelly
</td>
</tr>
<% end %>
</table>
<%= page_entries_info @reports %>
<%= will_paginate @reports %>