Sha256: ba95c6869002e87ade91148431aee3c8259a6049c8426ca97587f041ef8051c3

Contents?: true

Size: 911 Bytes

Versions: 47

Compression:

Stored size: 911 Bytes

Contents

<% if environments.present? %>
<table class="<%= table_css_classes 'table-fixed' %>">
  <thead>
    <th class="col-md-10"><%= _('Environment') %></th>
    <th class="col-md-2"><%= _('Number of classes') %></th>
  </thead>
  <tbody>
    <% environments.each do |name, count| %>
      <tr>
        <td class="ellipsis"><%= name %></td>
        <td><%= link_to count, puppetclasses_path(search: "environment = #{name}") %></td>
      </tr>
    <% end %>
    <tfoot>
      <th><%= _('Total') %></th>
      <th><%= environments.values.reduce(&:+) %></th>
    </tfoot>
  </tbody>
</table>
<% else %>
<div class="blank-slate-pf">
  <div class="blank-slate-pf-icon">
    <%= icon_text('th', '', kind: 'fa') %>
  </div>
  <h3><%= _('No environments found') %></h3>
  <p>
    <%= _('There are no puppet environments set up on this puppet master. Please check the puppet master configuration.') %>
  </p>
</div>
<% end %>

Version data entries

47 entries across 47 versions & 1 rubygems

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