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-2.0.7 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-4.0.1 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-4.0.0 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-3.0.6 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-2.0.6 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-2.0.5 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-3.0.5 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-3.0.4 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-2.0.4 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-3.0.3 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-3.0.2 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-2.0.3 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-3.0.1 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-2.0.2 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-2.0.0 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-1.0.5 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-1.0.4 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-2.0.0.alpha.2 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-1.0.3 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb
foreman_puppet-1.0.2 app/views/foreman_puppet/puppet_smart_proxies/_environments.html.erb