Sha256: 6ed79bf0fc24697b78ffb24c43fc6bdeed6092a96a73796a0b566fc007754bb0

Contents?: true

Size: 855 Bytes

Versions: 12

Compression:

Stored size: 855 Bytes

Contents

<%= javascript 'dashboard' %>

<% title _("Compliance policy: %s") % @policy.name %>

<div id='dashboard' class="gridster col-md-12 ready">
  <ul>
    <% [{:template => 'policy_status_widget', :sizex => 8, :sizey => 1, :name => N_('Status table')},
        {:template => 'policy_chart_widget', :sizex => 4, :sizey => 1, :name => N_('Status chart')}].each do |w| %>
      <% widget = compliance_widget(w) %>
      <%= content_tag(:li, widget_data(widget)) do %>
        <div class="widget <%= widget.name.parameterize %>">
          <%= render(:partial => widget.template, :locals => widget.data) %>
        </div>
      <% end %>
    <% end %>
  </ul>
</div>
<% if @policy.arf_reports.any? %>
  <div class="col-md-12 gridster">
    <%= _("Latest reports for policy: %s") % @policy.name %>
    <%= render :partial => 'policy_reports' %>
  </div>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman_openscap-0.7.3 app/views/policy_dashboard/index.html.erb
foreman_openscap-0.7.2 app/views/policy_dashboard/index.html.erb
foreman_openscap-0.7.1 app/views/policy_dashboard/index.html.erb
foreman_openscap-0.6.7 app/views/policy_dashboard/index.html.erb
foreman_openscap-0.7.0 app/views/policy_dashboard/index.html.erb
foreman_openscap-0.6.6 app/views/policy_dashboard/index.html.erb
foreman_openscap-0.6.5 app/views/policy_dashboard/index.html.erb
foreman_openscap-0.6.4 app/views/policy_dashboard/index.html.erb
foreman_openscap-0.6.3 app/views/policy_dashboard/index.html.erb
foreman_openscap-0.6.2 app/views/policy_dashboard/index.html.erb
foreman_openscap-0.6.1 app/views/policy_dashboard/index.html.erb
foreman_openscap-0.6.0 app/views/policy_dashboard/index.html.erb