Project

General

Profile

Download (1.61 KB) Statistics
| Branch: | Tag: | Revision:
<%= javascript "jquery.cookie", "host_checkbox" %>
<% title header ||= "" %>
<table class="list">
<tr>
<th><%= check_box_tag "check_all", "", false, { :onclick => "toggleCheck()", :title => "Select All" } %></th>
<th><%= sort :name %></th>
<th><%= sort :os, :as => "Operating system" %></th>
<th><%= sort :environment %></th>
<th><%= sort :model %></th>
<th><%= sort :hostgroup, :as => "Host Group" %></th>
<th><%= sort :last_report %></th>
<th></th>
</tr>
<% hosts.each do |host| -%>
<tr class="<%= cycle("even", "odd") -%>">
<td>
<%= check_box_tag "host_ids[]", nil, false, :id => "host_ids_#{host.id}", :disabled => !authorized?, :class => 'host_select_boxes', :onclick => 'hostChecked(this)' -%>
</td>
<td> <%= name_column(host) %> </td>
<td><%= icon(host.os, :size => "18x18", :title => host.os.to_s) + " " + host.os.to_s if host.os %></td>
<td><%= h host.try(:environment) %></td>
<td><%= h host.try(:model) %></td>
<td><%= hostgroup_name host.hostgroup %></td>
<td><%= last_report_column(host) %></td>
<td>
<%= display_link_if_authorized 'Edit', hash_for_edit_host_path(:id => host) %>
<%= display_link_if_authorized 'Clone', hash_for_clone_host_path(:id => host) %>
<%= display_link_if_authorized 'Destroy', hash_for_host_path(:id => host, :auth_action => :destroy), :confirm => "Delete #{host.name}?", :method => :delete, :action => :destroy %>
</td>
</tr>
<% end -%>
</table>
<%= page_entries_info hosts %>
<%= will_paginate hosts %><strong><span class="select_count">0</span></strong> Selected
(4-4/25)