foreman/app/views/reports/_list.html.erb @ bf4a13d3
dfd511ba | Amos Benari | <table class="table table-bordered table-striped ellipsis">
|
|
459e0feb | Paul Kelly | <tr>
|
|
4d4557e9 | Joseph Magen | <% unless params[:host_id] %>
|
|
b0b1ea21 | Ohad Levy | <th><%= sort :host %></th>
|
|
4d4557e9 | Joseph Magen | <% end %>
|
|
2e0daa96 | Dominic Cleal | <th><%= sort :reported, :as => _("Last report") %></th>
|
|
bf4a13d3 | Walden Raines | <th class="col-md-1"><%= sort :applied, :as => _("Applied") %></th>
|
|
<th class="col-md-1"><%= sort :restarted, :as => _("Restarted") %></th>
|
|||
<th class="col-md-1"><%= sort :failed, :as => _("Failed") %></th>
|
|||
<th class="col-md-1"><%= sort :failed_restarts, :as => _("Restart<br>Failures").html_safe %></th>
|
|||
<th class="col-md-1"><%= sort :skipped, :as => _("Skipped") %></th>
|
|||
<th class="col-md-1"><%= sort :pending, :as => _("Pending") %></th>
|
|||
<th class="col-md-1"></th>
|
|||
459e0feb | Paul Kelly | </tr>
|
|
<% for report in @reports %>
|
|||
056baf6c | Amos Benari | <tr>
|
|
4d4557e9 | Joseph Magen | <% unless params[:host_id] %>
|
|
bd5e3385 | Ohad Levy | <td><%= link_to h(report.host), host_reports_path(report.host) %></td>
|
|
4d4557e9 | Joseph Magen | <% end %>
|
|
459e0feb | Paul Kelly | <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>
|
|||
bf4a13d3 | Walden Raines | <td><%= report_event_column(report.failed, "label-danger") %></td>
|
|
82e47ae0 | Amos Benari | <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">
|
|
bfbf7ed8 | Lukas Zapletal | <%= display_delete_if_authorized hash_for_report_path(:id => report.id), :confirm => _("Delete report for %s?") % report.host.name %>
|
|
459e0feb | Paul Kelly | </td>
|
|
</tr>
|
|||
<% end %>
|
|||
</table>
|
|||
<%= page_entries_info @reports %>
|
|||
<%= will_paginate @reports %>
|