Project

General

Profile

Download (925 Bytes) Statistics
| Branch: | Tag: | Revision:
<% title "Host Groups" %>

<% title_actions display_link_if_authorized("New Hostgroup", hash_for_new_hostgroup_path), help_path %>

<table class="table table-bordered table-striped">
<tr>
<th>Name</th>
<th></th>
</tr>
<% Hostgroup.sort_by_ancestry(@hostgroups).each do |hostgroup| %>
<tr class="<%= cycle("even", "odd") -%>">
<td> <%= hostgroup_name hostgroup %> </td>
<td>
<%= action_buttons(
display_link_if_authorized('Nest', hash_for_nest_hostgroup_path(:id => hostgroup), :class=>"btn btn-small"),
display_link_if_authorized('Clone', hash_for_clone_hostgroup_path(:id => hostgroup)),
display_delete_if_authorized(hash_for_hostgroup_path(:id => hostgroup), :confirm => warning_message(hostgroup))) %>
</td>
</tr>
<% end %>
</table>
<%= page_entries_info @hostgroups %>
<%= will_paginate @hostgroups %>
(3-3/5)