Sha256: a017ff9e1d5c6ec183728555a7841de7dc67ab787a07b9bdce7d6f02abb9cd66

Contents?: true

Size: 1000 Bytes

Versions: 26

Compression:

Stored size: 1000 Bytes

Contents

<h4 class="ca"><%= _('Latest Compliance Reports') %></h4>
<% latest_reports = ForemanOpenscap::ArfReport.latest.limit(9) %>
<% if latest_reports.empty? %>
  <p class="ca"><%= _("No reports available") %></p>
<% else %>
  <table class="table table-striped table-fixed">
    <tr>
      <%= latest_compliance_headers %>
    </tr>
    <% latest_reports.each do |report| %>
      <tr>
        <td class="ellipsis"><%= link_to h(report.host.nil? ? _('Host does not exist anymore') : report.host.name), arf_report_path(report) %></td>
        <td class="ellipsis"><%= report.policy.nil? ? _('Policy is missing') :  link_to(h(report.policy.name), policy_dashboard_policy_path(report.policy)) %></td>
        <td class="ca"><%= report_event_column(report.passed, "label-success")  %></td>
        <td class="ca"><%= report_event_column(report.failed, "label-danger")  %></td>
        <td class="ca"><%= report_event_column(report.othered, "label-info")  %></td>
      </tr>
    <% end %>
  </table>
<% end %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
foreman_openscap-0.7.13 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.8.6 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.8.5 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.7.12 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.9.0 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.8.4 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.7.11 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.7.10 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.8.3 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.7.9 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.7.8 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.7.7 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.8.2 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.7.6 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.8.1 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.7.5 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.8.0 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.7.4 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.7.3 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.7.2 app/views/dashboard/_compliance_host_reports_widget.html.erb