Sha256: c08cbffca95aad355375a395767e0a1e69f940764ff167289d7bd80f56f73a4f

Contents?: true

Size: 1008 Bytes

Versions: 72

Compression:

Stored size: 1008 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_css_classes('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

72 entries across 72 versions & 1 rubygems

Version Path
foreman_openscap-10.1.0 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-10.0.3 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-10.0.2 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-10.0.1 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-10.0.0 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-9.0.4 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-9.0.3 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-9.0.2 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-9.0.1 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-9.0.0 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-8.0.0 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-7.1.1 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-7.1.0 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-7.0.0 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-6.0.0 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-5.2.3 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-5.2.2 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-5.1.1 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-5.2.1 app/views/dashboard/_compliance_host_reports_widget.html.erb
foreman_openscap-5.2.0 app/views/dashboard/_compliance_host_reports_widget.html.erb