Revision 2e04e41b
Added by Ohad Levy almost 14 years ago
- ID 2e04e41bfa05c123bab0b436dccb0c344d7ee417
app/views/hosts/_minilist.html.erb | ||
---|---|---|
<div id="hostlist" style="clear:both;">
|
||
<% if hosts.size > 0 -%>
|
||
<% form_tag(multiple_actions_hosts_path,:method => "get", :id => "host_select_form") do %>
|
||
<% title header ||= "" %>
|
||
<table class="list">
|
||
<tr>
|
||
<th><%= order @search, :by => :name %></th>
|
||
<th>Operating system</th>
|
||
<th>Environment</th>
|
||
<th>Model</th>
|
||
<th>Host Group</th>
|
||
<th><%= order @search, :by => :last_report %></th>
|
||
<th></th>
|
||
</tr>
|
||
<% hosts.each do |host| -%>
|
||
<tr class="<%= cycle("even", "odd") -%>">
|
||
<td>
|
||
<%= check_box_tag "host_ids[]", host.id, selected?(host), :class => 'host_select_boxes', :onClick => 'insertHostVal(this)' if hosts_controller? -%>
|
||
<%=name_column(host) %>
|
||
</td>
|
||
<td><%=h host.try(:os) %></td>
|
||
<td><%=h host.try(:environment) %></td>
|
||
<td><%=h host.try(:model) %></td>
|
||
<td><%=h host.try(:hostgroup) %></td>
|
||
<td><%=last_report_column(host) %></td>
|
||
<td>
|
||
<%= link_to 'Edit', edit_host_url(host) %>
|
||
<%= link_to 'Clone', clone_host_url(host) %>
|
||
<%= link_to 'Destroy', host, :confirm => "Delete #{host.name}?", :method => :delete %>
|
||
</td>
|
||
<% end -%>
|
||
</tr>
|
||
</table>
|
||
<%= submit_tag("Edit Multiple Hosts", :title => "Mass assign values to many hosts") if hosts_controller? %><br />
|
||
<% end -%>
|
||
<% if hosts.size > 0 -%>
|
||
<% form_tag(multiple_actions_hosts_path,:method => "get", :id => "host_select_form") do %>
|
||
<% title header ||= "" %>
|
||
<table class="list">
|
||
<tr>
|
||
<th><%= order @search, :by => :name %></th>
|
||
<th>Operating system</th>
|
||
<th>Environment</th>
|
||
<th>Model</th>
|
||
<th>Host Group</th>
|
||
<th><%= order @search, :by => :last_report %></th>
|
||
<th></th>
|
||
</tr>
|
||
<% hosts.each do |host| -%>
|
||
<tr class="<%= cycle("even", "odd") -%>">
|
||
<td>
|
||
<%= check_box_tag "host_ids[]", host.id, selected?(host), :class => 'host_select_boxes', :onClick => 'insertHostVal(this)' if hosts_controller? -%>
|
||
<%=name_column(host) %>
|
||
</td>
|
||
<td><%=h host.try(:os) %></td>
|
||
<td><%=h host.try(:environment) %></td>
|
||
<td><%=h host.try(:model) %></td>
|
||
<td><%=h host.try(:hostgroup) %></td>
|
||
<td><%=last_report_column(host) %></td>
|
||
<td>
|
||
<%= link_to 'Edit', edit_host_url(host) %>
|
||
<%= link_to 'Clone', clone_host_url(host) %>
|
||
<%= link_to 'Destroy', host, :confirm => "Delete #{host.name}?", :method => :delete %>
|
||
</td>
|
||
<% end -%>
|
||
</tr>
|
||
</table>
|
||
<%= submit_tag("Edit Multiple Hosts", :title => "Mass assign values to many hosts") if hosts_controller? %><br />
|
||
<% end -%>
|
||
<%= page_entries_info hosts %>
|
||
<%= will_paginate hosts %>
|
||
</div>
|
||
<% end -%>
|
||
<%= page_entries_info hosts %>
|
||
<%= will_paginate hosts %>
|
Also available in: Unified diff
CSS rework, aligned view on all pages
removed google JS from pages which do not require it