% if environments.present? %>
<%= _('Environment') %> | <%= _('Number of classes') %> | <% environments.each do |name, count| %>
---|---|
<%= name %> | <%= link_to count, puppetclasses_path(search: "environment = #{name}") %> | <%= _('Total') %> | <%= environments.values.reduce(&:+) %> |
<%= _('There are no puppet environments set up on this puppet master. Please check the puppet master configuration.') %>