<% content_for(:search_bar) { } %> <% title _('Config Groups') %> <% title_actions new_link(_('Create Config Group'), engine: foreman_puppet), help_button %> <% @config_groups.each do |config_group| %> <% end %>
<%= sort :name %> <%= _('Puppet Classes') %> <%= _('Hosts') %> <%= _('Host Groups') %> <%= _('Actions') %>
<%= link_to_if_authorized config_group.name, hash_for_edit_config_group_path(config_group).merge(:auth_object => config_group, :authorizer => authorizer) %> <%= link_to config_group.puppetclasses.size, puppetclasses_path(:search => %Q{config_group = "#{config_group}"}) %> <%= link_to config_group.hosts_count, main_app.hosts_path(:search => %Q{config_group = "#{config_group}"}) %> <%= link_to config_group.hostgroups_count, main_app.hostgroups_path(:search => %Q{config_group = "#{config_group}"}) %> <%= action_buttons( display_delete_if_authorized(hash_for_config_group_path(config_group).merge(:auth_object => config_group, :authorizer => authorizer), :data => { :confirm => _('Delete %s?') % config_group.name }))%>
<%= will_paginate_with_info @config_groups %>