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

Version Path
foreman_salt-14.1.0 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-14.0.0 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-13.2.4 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-13.2.3 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-13.2.2 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-13.2.1 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-13.2.0 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-13.1.0 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-13.0.0 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-12.0.0 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-11.0.1 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-11.0.0 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-10.3.1 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-10.3.0 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-10.2.0 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-10.1.0 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-8.0.4 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-9.0.1 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-10.0.0 app/views/foreman_salt/salt_environments/index.html.erb
foreman_salt-9.0.0 app/views/foreman_salt/salt_environments/index.html.erb