% scope = ForemanVirtWhoConfigure::Config.for_organization(Organization.current) %>
<% scope = scope.authorized(:view_virt_who_config) %>
<% out_of_date = scope.out_of_date.order('out_of_date_at DESC') %>
<%= _("Configuration Status") %> |
<%= _("Count") %> |
<%= link_to _("No Reports"), foreman_virt_who_configure_configs_path(:search => "status = unknown") %> |
<%= scope.where(:last_report_at => nil).count %> |
<%= link_to _("Out Of Date"), foreman_virt_who_configure_configs_path(:search => "status = out_of_date") %> |
<%= out_of_date.count %> |
<%= link_to _("Up To Date"), foreman_virt_who_configure_configs_path(:search => "status = ok") %> |
<%= scope.where.not(:last_report_at => nil).count - out_of_date.count %> |
<%= link_to _("Total Configurations"), foreman_virt_who_configure_configs_path %> |
<%= scope.count %> |
<% if out_of_date.empty? %>
<%= _("No configuration found") %>
<% else %>
<%= s_("Config|Name") %> |
<%= s_("Config|Last Report") %> |
<%= s_("Config|Interval") %> |
<% out_of_date.limit(3).each do |config| %>
<%= config_report_status_icon(config) %><%= link_to config.name, foreman_virt_who_configure_config_path(config) %> |
<%= l(config.last_report_at, :format => :long) %> |
<%= config.humanized_interval %> |
<% end %>
<% end %>