Sha256: 67c559f813b94139035df00a723d7c3ae10e826d3953bf32c1f8bccca7078cce
Contents?: true
Size: 1.51 KB
Versions: 7
Compression:
Stored size: 1.51 KB
Contents
<% content_for(:search_bar) { } %> <% title _('Config Groups') %> <% title_actions new_link(_('Create Config Group'), { engine: foreman_puppet }, id: 'new_config_group'), help_button %> <table class="<%= table_css_classes 'table-fixed' %>"> <thead> <tr> <th class="col-md-6"><%= sort :name %></th> <th><%= _('Puppet Classes') %></th> <th><%= _('Hosts') %></th> <th><%= _('Host Groups') %></th> <th><%= _('Actions') %></th> </tr> </thead> <tbody> <% @config_groups.each do |config_group| %> <tr> <td class="ellipsis"><%= link_to_if_authorized config_group.name, hash_for_edit_config_group_path(config_group).merge(engine: foreman_puppet, :auth_object => config_group, :authorizer => authorizer) %></td> <td><%= link_to config_group.puppetclasses.size, puppetclasses_path(:search => %Q{config_group = "#{config_group}"}) %></td> <td><%= link_to config_group.hosts_count, main_app.hosts_path(:search => %Q{config_group = "#{config_group}"}) %></td> <td><%= link_to config_group.hostgroups_count, main_app.hostgroups_path(:search => %Q{config_group = "#{config_group}"}) %></td> <td><%= action_buttons( display_delete_if_authorized(hash_for_config_group_path(config_group).merge(engine: foreman_puppet, :auth_object => config_group, :authorizer => authorizer), :data => { :confirm => _('Delete %s?') % config_group.name }))%> </td> </tr> <% end %> </tbody> </table> <%= will_paginate_with_info @config_groups %>
Version data entries
7 entries across 7 versions & 1 rubygems