<% if environments.present? %> <% environments.each do |name, count| %> <% end %>
<%= _('Environment') %> <%= _('Number of classes') %>
<%= name %> <%= link_to count, puppetclasses_path(search: "environment = #{name}") %>
<%= _('Total') %> <%= environments.values.reduce(&:+) %>
<% else %>
<%= icon_text('th', '', kind: 'fa') %>

<%= _('No environments found') %>

<%= _('There are no puppet environments set up on this puppet master. Please check the puppet master configuration.') %>

<% end %>