Revision 82e47ae0
Added by Amos Benari about 12 years ago
- ID 82e47ae0f86994702c3a084cc6150250a81034ee
app/views/environments/index.html.erb | ||
---|---|---|
display_link_if_authorized("Import all classes and environments", hash_for_import_environments_environments_path, :action => "import_environments"), help_path
|
||
%>
|
||
|
||
<table class="list">
|
||
<table class="table table-bordered table-striped">
|
||
<tr>
|
||
<th><%= sort :name %></th>
|
||
<th>Hosts</th>
|
||
... | ... | |
</tr>
|
||
|
||
<% for environment in @environments %>
|
||
<tr class="<%= cycle("even", "odd") -%>">
|
||
<tr>
|
||
<td>
|
||
<%= link_to_if_authorized h(environment.name), hash_for_edit_environment_path(:id=> environment.name) %>
|
||
</td>
|
||
<td><%= link_to_if environment.hosts.any?, environment.hosts.size, hosts_path(:search => "environment = #{environment}") %>
|
||
<td class="ra">
|
||
<%= link_to "Classes", puppetclasses_path(:search => "environment = #{environment}")%>
|
||
<%= display_link_if_authorized "Delete", hash_for_environment_path(:id => environment.name, :auth_action => :destroy), :confirm => "Delete #{environment.name}?", :method => :delete %>
|
||
<td>
|
||
<%= action_buttons(link_to("Classes", puppetclasses_path(:search => "environment = #{environment}"), :class=>'btn btn-small'),
|
||
display_delete_if_authorized(hash_for_environment_path(:id => environment.name), :confirm => "Delete #{environment.name}?")) %>
|
||
</td>
|
||
</tr>
|
||
<% end %>
|
Also available in: Unified diff
updates UI to bootstrap v2