Sha256: 3f1eb86e31f343128afd82b7a6f967b53d24855174f660518d8452a7600d9e4b

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

<h4 class="ca"><%= _('Latest compliance reports') %></h4>
<% latest_reports = ForemanOpenscap::ArfReport.latest %>
<% if latest_reports.empty? %>
  <p class="ca"><%= _("No reports available") %></p>
<% else %>
  <table class="table table-striped ellipsis">
    <tr>
      <th><%= _('Host') %></th>
      <th><%= _('Policy') %></th>
      <%= translated_header(s_('Passed|P'), _('Passed')).html_safe %>
      <%= translated_header(s_('Failed|F'), _('Failed')).html_safe %>
      <%= translated_header(s_('Othered|O'), _('Othered')).html_safe %>
    </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><%= link_to h(report.policy.name), policy_dashboard_policy_path(report.policy) %></td>
        <td><%= report_event_column(report.passed, "label-success")  %></td>
        <td><%= report_event_column(report.failed, "label-danger")  %></td>
        <td><%= report_event_column(report.othered, "label-info")  %></td>
      </tr>
    <% end %>
  </table>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_openscap-0.5.3 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.5.2 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.5.1 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-0.5.0 app/views/dashboard/_compliance_host_reports_widget.html.erb