Project

General

Profile

« Previous | Next » 

Revision 72479d52

Added by Ohad Levy over 10 years ago

fixes #3709 - explicitly say puppet environments vs just 'environments'

View differences:

app/views/environments/index.html.erb
<% title _("Environments") %>
<% title _('Puppet Environments') %>
<% title_actions import_proxy_select(hash_for_import_environments_environments_path), button_group(display_link_if_authorized(_("New Environment"), hash_for_new_environment_path)) %>
<%= environments_title_actions %>
<table class="table table-bordered table-striped table-two-pane">
<tr>
<th><%= sort :name, :as => s_("Environment|Name") %></th>
<th><%= sort :name, :as => s_('Environment|Name') %></th>
<th><%= _('Hosts') %></th>
<th></th>
</tr>
<% for environment in @environments %>
<% @environments.each do |environment| %>
<tr>
<td>
<%= link_to_if_authorized h(environment.name), hash_for_edit_environment_path(:id=> environment.name) %>
<%= link_to_if_authorized environment.name, hash_for_edit_environment_path(:id => environment.name) %>
</td>
<td><%= link_to @counter[environment.id] || 0, hosts_path(:search => "environment = #{environment}") %>
<td>
<%= action_buttons(link_to(_("Classes"), puppetclasses_path(:search => "environment = #{environment}")),
display_delete_if_authorized(hash_for_environment_path(:id => environment.name), :confirm => "Delete #{environment.name}?")) %>
<%= action_buttons(link_to(_('Classes'), puppetclasses_path(:search => "environment = #{environment}")),
display_delete_if_authorized(hash_for_environment_path(:id => environment.name), :confirm => "Delete #{environment.name}?")) %>
</td>
</tr>
<% end %>
</table>
<%= page_entries_info @environments %>
<%= will_paginate @environmentsS %>
<%= will_paginate @environments %>

Also available in: Unified diff