%= javascript 'dashboard' %>
<% title _("Compliance policy: %s") % @policy.name %>
<% [{: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 %>
<%= render(:partial => widget.template, :locals => widget.data) %>
<% end %>
<% end %>
<% if @policy.arf_reports.any? %>
<%= _("Latest reports for policy: %s") % @policy.name %>
<%= render :partial => 'policy_reports' %>
<% end %>