<%= _('Latest Compliance Reports') %>

<% latest_reports = ForemanOpenscap::ArfReport.latest.limit(9) %> <% if latest_reports.empty? %>

<%= _("No reports available") %>

<% else %> <%= latest_compliance_headers %> <% latest_reports.each do |report| %> <% end %>
<%= link_to h(report.host.nil? ? _('Host does not exist anymore') : report.host.name), arf_report_path(report) %> <%= report.policy.nil? ? _('Policy is missing') : link_to(h(report.policy.name), policy_dashboard_policy_path(report.policy)) %> <%= report_event_column(report.passed, "label-success") %> <%= report_event_column(report.failed, "label-danger") %> <%= report_event_column(report.othered, "label-info") %>
<% end %>