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