Sha256: dfc7936a96e892be753e2efbbfc6fc21f9d4536a39edb9bb2af98677e0734ac0

Contents?: true

Size: 1.43 KB

Versions: 3

Compression:

Stored size: 1.43 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(: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(: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

3 entries across 3 versions & 1 rubygems

Version Path
foreman_puppet-0.1.0 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-0.0.2 app/views/foreman_puppet/config_groups/index.html.erb
foreman_puppet-0.0.1 app/views/foreman_puppet/config_groups/index.html.erb