Sha256: 2d49917e08da949790697e9c176a20c86fce14431169127a65e8fcfab9218ad7

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

<%= javascript 'dashboard', 'foreman_openscap/scap_hosts_show' %>

<% title _("%s compliance reports by policy") % @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"><%= _('%s latest report') % policy.name %></h4>
        <% report = data.report %>
        <%= host_policy_breakdown_chart(report, :class => 'statistics-pie small') %>
      </div>
    </div>

    <div class="col-md-8">
      <div class="stats-well">
        <h4 class="ca"><%= _("%s reports over time") % policy %></h4>
        <%= flot_chart('resource_graph', '', '', host_arf_reports_chart(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

4 entries across 4 versions & 1 rubygems

Version Path
foreman_openscap-0.5.3 app/views/compliance_hosts/show.html.erb
foreman_openscap-0.5.2 app/views/compliance_hosts/show.html.erb
foreman_openscap-0.5.1 app/views/compliance_hosts/show.html.erb
foreman_openscap-0.5.0 app/views/compliance_hosts/show.html.erb