Sha256: 2b3ca8126028d750bf191594457acdae079a66192265fd4719acb55fa4ed7c89
Contents?: true
Size: 1.53 KB
Versions: 30
Compression:
Stored size: 1.53 KB
Contents
<% title _('Salt Environments') %> <% title_actions button_group(new_link(_('New Salt Environment'))) %> <table class="table table-bordered table-striped"> <tr> <th><%= sort :name, :as => s_('SaltEnvironment|Name') %></th> <th><%= _('States') %></th> <th><%= sort :host, :as => _('Hosts'), :default => 'DESC' %></th> <th><%= sort :hostgroup, :as => _('Host groups'), :default => 'DESC' %></th> <th></th> </tr> <% for salt_environment in @salt_environments %> <tr> <td><%=link_to_if_authorized h(salt_environment.name), hash_for_edit_salt_environment_path(:id => salt_environment).merge(:auth_object => salt_environment, :authorizer => authorizer) %></td> <td><%= link_to_if_authorized(salt_environment.salt_modules.count, hash_for_salt_modules_path(:search => "environment = #{salt_environment}")) %></td> <td><%= link_to_if_authorized(salt_environment.hosts.count, hash_for_hosts_path(:search => "salt_environment = #{salt_environment}")) %></td> <td><%= link_to_if_authorized(salt_environment.hostgroups.count, hash_for_hostgroups_path(:search => "salt_environment = #{salt_environment}")) %></td> <td> <%= action_buttons(display_delete_if_authorized(hash_for_salt_environment_path(:id => salt_environment).merge(:auth_object => salt_environment, :authorizer => authorizer), :confirm => _('Delete %s?') % salt_environment.name)) %> </td> </tr> <% end %> </table> <%= page_entries_info @salt_environments %> <%= will_paginate @salt_environments %>
Version data entries
30 entries across 30 versions & 1 rubygems