<%= javascript "foreman_openscap/arf_reports" %> <% for arf_report in @arf_reports %> <% end %>
<%= check_box_tag "check_all", "", false, { :onclick => "tfm.hosts.table.toggleCheck()", :'check-title' => _("Select all items in this page"), :'uncheck-title'=> _("items selected. Uncheck to Clear") } %> <%= sort :host, as: _('Host') %> <%= sort :reported, :as => _("Reported At") %> <%= sort :policy, :as => _("Policy") %> <%= sort :openscap_proxy, :as => _("Openscap Proxy") %> <%= sort :compliance_passed, :as => _("Passed") %> <%= sort :compliance_failed, :as => _("Failed") %> <%= sort :compliance_othered, :as => _("Other") %> <%= _("Actions") %>
<%= check_box_tag "host_ids[]", nil, false, :id => "host_ids_#{arf_report.id}", :disabled => !authorized_for(:controller => :arf_reports, :action => :destroy), :class => 'host_select_boxes', :onclick => 'tfm.hosts.table.hostChecked(this)' %> <%= name_column(arf_report.host) %> <%= display_link_if_authorized(date_time_relative_value(arf_report.reported_at), hash_for_arf_report_path(:id => arf_report.id)) %> <%= arf_report.policy.present? ? display_link_if_authorized(arf_report.policy.name, hash_for_edit_policy_path(:id => arf_report.policy.id)) : _('Deleted policy') %> <%= openscap_proxy_link arf_report %> <%= report_arf_column(arf_report.passed, "label-info") %> <%= report_arf_column(arf_report.failed, "label-danger") %> <%= report_arf_column(arf_report.othered, "label-warning") %> <%= action_buttons(display_link_if_authorized(_("Full Report"), hash_for_show_html_arf_report_path(:id => arf_report.id )), display_delete_if_authorized(hash_for_arf_report_path(:id => arf_report.id), :data => { :confirm => _("Delete compliance report for %s?") % arf_report.host})) %>
<%= will_paginate_with_info @arf_reports %>