Sha256: b26f3e4cef53c0b599ae73d88d4a6c90b2ec1294d1145c62f151f5fbe1e1d43a

Contents?: true

Size: 1.62 KB

Versions: 15

Compression:

Stored size: 1.62 KB

Contents

<% javascript 'foreman_openscap/scap_hosts_show' %>
<% stylesheet 'foreman_openscap/scap_breakdown_chart' %>

<%= breadcrumbs(:resource_url => api_hosts_path,
                :resource_filter => "is_compliance_host = true",
                :name_field => 'name')
%>
<% title n_("%s compliance report by policy", "%s compliance reports by policy" , @host.combined_policies.length) % @host.to_label %>
<% @host.combined_policies.each do |policy| %>
  <h2 class="center-block"><%= _('Policy %s') % policy %></h2>
  <div class="row">
    <% data = ForemanOpenscap::HostReportDashboard::Data.new(policy, @host) %>
    <% if data.has_data? %>
    <div class="col-md-4">
      <div class="stats-well">
        <h4 class="header ca"><%= link_to_if_authorized(_('%s latest report') % policy.name,
                                                        hash_for_arf_report_path(:id => data.latest_report.id)
                                                          .merge(:auth_object => data.latest_report)) %></h4>
        <% report = data.report %>
        <div class="scap-breakdown-chart">
          <%= react_component('DonutChart', :data => donut_breakdown_chart_data(report)) %>
        </div>
      </div>
    </div>

    <div class="col-md-8">
      <div class="stats-well">
        <h4 class="ca"><%= _("%s reports over time") % policy %></h4>
        <%= react_component('LineChart', host_arf_reports_chart_data(policy.id)) %>
      </div>
    </div>
    <% else %>
      <div class="col-md-4">
        <h4 class="header ca"><%= _('No report for this policy') %></h4>
      </div>
    <% end %>
  </div>
  <hr style="border: 1px solid #eeeeee"/>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
foreman_openscap-10.2.0 app/views/compliance_hosts/show.html.erb
foreman_openscap-9.0.5 app/views/compliance_hosts/show.html.erb
foreman_openscap-10.1.0 app/views/compliance_hosts/show.html.erb
foreman_openscap-10.0.3 app/views/compliance_hosts/show.html.erb
foreman_openscap-10.0.2 app/views/compliance_hosts/show.html.erb
foreman_openscap-10.0.1 app/views/compliance_hosts/show.html.erb
foreman_openscap-10.0.0 app/views/compliance_hosts/show.html.erb
foreman_openscap-9.0.4 app/views/compliance_hosts/show.html.erb
foreman_openscap-9.0.3 app/views/compliance_hosts/show.html.erb
foreman_openscap-9.0.2 app/views/compliance_hosts/show.html.erb
foreman_openscap-9.0.1 app/views/compliance_hosts/show.html.erb
foreman_openscap-9.0.0 app/views/compliance_hosts/show.html.erb
foreman_openscap-8.0.0 app/views/compliance_hosts/show.html.erb
foreman_openscap-7.1.1 app/views/compliance_hosts/show.html.erb
foreman_openscap-7.1.0 app/views/compliance_hosts/show.html.erb