Sha256: 22021117a243765ca61be79b5753757e947a89cb7b92b6177a9ee53a98d71290

Contents?: true

Size: 1.58 KB

Versions: 30

Compression:

Stored size: 1.58 KB

Contents

<% content_for(:search_bar) { } %>
<% title _('Config Groups') %>

<% title_actions(
     new_link(_('Create Config Group'), { engine: foreman_puppet }, id: 'new_config_group'),
     link_to(_('Help'), { action: 'welcome' }, { class: 'btn btn-default' })) %>

<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

30 entries across 30 versions & 1 rubygems

Version Path
foreman_puppet-8.1.1 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-8.1.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-8.0.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-6.4.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-7.0.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-6.3.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-6.2.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-6.1.1 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-5.1.3 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-6.1.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-6.0.1 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-6.0.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-5.1.2 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-4.1.1 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-5.1.1 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-5.1.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-4.1.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-4.0.4 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-5.0.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-4.0.3 app/views/foreman_puppet/config_groups/index.html.erb