Sha256: d4dd474c8d671becd053da44a55a7cf1c9b4d946b9ec3a4c358e908cab48230f

Contents?: true

Size: 1.49 KB

Versions: 5

Compression:

Stored size: 1.49 KB

Contents

<% title _("Puppet classes") %>

<% title_actions import_proxy_select(hash_for_import_environments_puppetclasses_path), button_group(display_link_if_authorized(_("New Puppet class"), hash_for_new_puppetclass_path)) %>

<table class="table table-bordered table-striped">
  <tr>
    <th><%= sort :name, :as => s_("Puppetclass|Name") %></th>
    <th><%= sort :environment, :as => _("Environments and documentation") %></th>
    <th><%= _('Host Group') -%></th>
    <th><%= _('Hosts') -%></th>
    <th><%= _('Keys') -%></th>
    <th></th>
  </tr>
  <% for puppetclass in @puppetclasses %>
    <tr>
      <td><%=link_to_if_authorized h(puppetclass.name), hash_for_edit_puppetclass_path(:id => puppetclass) %></td>
      <td>
        <% puppetclass.environments.uniq.each do |environment| -%>
          <%= link_to_function environment, 'show_rdoc(this)', :'data-url' => rdoc_classes_path(environment, puppetclass.name) %>
        <% end %>
      </td>
      <td><%= puppetclass.hostgroups.map {|hg| link_to_if_authorized hg, hash_for_edit_hostgroup_path(:id=>hg)}.to_sentence.html_safe %></td>
      <td> <%= link_to host_counter(puppetclass), hosts_path(:search => "class = #{puppetclass.name}")%></td>
      <td><%= @keys_counter[puppetclass.name] || 0 %> </td>
      <td>
        <%= display_delete_if_authorized hash_for_puppetclass_path(:id => puppetclass), :confirm => _("Delete %s?") % puppetclass.name %>
      </td>
    </tr>
  <% end %>
</table>

<%= page_entries_info @puppetclasses %>
<%= will_paginate @puppetclasses %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/puppetclasses/index.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/puppetclasses/index.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/puppetclasses/index.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/puppetclasses/index.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/puppetclasses/index.html.erb