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

Version Path
foreman_puppet-8.0.0 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-6.4.0 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-7.0.0 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-6.3.0 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-6.2.0 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-6.1.1 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-5.1.3 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-6.1.0 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-6.0.1 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-6.0.0 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-5.1.2 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-4.1.1 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-5.1.1 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-5.1.0 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-4.1.0 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-4.0.4 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-5.0.0 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-4.0.3 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-4.0.2 app/views/foreman_puppet/environments/index.html.erb
foreman_puppet-3.0.7 app/views/foreman_puppet/environments/index.html.erb