Sha256: 93dcd36ad22bcd7c7cbbe874cdcc2f1de2dd224596aa869d6a0c8045a8c25583
Contents?: true
Size: 1.48 KB
Versions: 9
Compression:
Stored size: 1.48 KB
Contents
<% content_for(:search_bar) { } %> <% title _('Config Groups') %> <% title_actions new_link(_('Create Config Group'), engine: foreman_puppet), 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
9 entries across 9 versions & 1 rubygems