Sha256: 0e70adc1804e8784be0c262d68c92ca9c747cc399945a953f364d74e9db14ffa
Contents?: true
Size: 1.37 KB
Versions: 45
Compression:
Stored size: 1.37 KB
Contents
<% title _('Puppet Environments') %> <%= environments_title_actions %> <table class="<%= table_css_classes 'table-fixed' %>"> <thead> <tr> <th class="col-md-8"><%= sort :name, :as => s_('Environment|Name') %></th> <th><%= _('Hosts') %></th> <th><%= _('Actions') %></th> </tr> </thead> <tbody> <% @environments.each do |environment| %> <tr> <td class="ellipsis"> <%= link_to_if_authorized environment.name, hash_for_edit_environment_path(environment).merge(engine: foreman_puppet, auth_object: environment, authorizer: authorizer) %> </td> <td><%= link_to hosts_count('environment')[environment], main_app.hosts_path(:search => "environment = #{environment}") %></td> <td> <%= action_buttons( link_to(_('Classes'), puppetclasses_path(search: "environment = #{environment}")), import_proxy_links(hash_for_import_environments_environments_path(env: environment).merge(engine: foreman_puppet)), display_delete_if_authorized(hash_for_environment_path(environment).merge(engine: foreman_puppet, auth_object: environment, authorizer: authorizer), data: { confirm: "Delete #{environment.name}?" }) ) %> </td> </tr> <% end %> </tbody> </table> <%= will_paginate_with_info @environments %>
Version data entries
45 entries across 45 versions & 1 rubygems