Sha256: 3711454c816076f27ac3dab2b7c204bd44dcbb8c411258fbc5055f881982c5cd

Contents?: true

Size: 963 Bytes

Versions: 3

Compression:

Stored size: 963 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 ellipsis">
    <tr>
      <%= latest_compliance_headers %>
    </tr>
    <% latest_reports.each do |report| %>
      <tr>
        <td><%= link_to h(report.host.nil? ? _('Host does not exist anymore') : report.host.name), arf_report_path(report) %></td>
        <td><%= 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

3 entries across 3 versions & 1 rubygems

Version Path
foreman_openscap-0.6.2 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.6.1 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.6.0 app/views/dashboard/_compliance_host_reports_widget.html.erb