Project

General

Profile

« Previous | Next » 

Revision 29c5556a

Added by Tomer Brisker about 8 years ago

Fixes #14310 - Display muliple host action buttons only if action permitted

View differences:

app/views/hosts/_list.html.erb
<% hosts.each do |host| %>
<tr>
<td class="ca">
<%= check_box_tag "host_ids[]", nil, false, :id => "host_ids_#{host.id}", :disabled => !authorized?, :class => 'host_select_boxes', :onclick => 'hostChecked(this)' %>
<%= check_box_tag "host_ids[]", nil, false, :id => "host_ids_#{host.id}", :class => 'host_select_boxes', :onclick => 'hostChecked(this)' %>
</td>
<td class="ellipsis"><%= name_column(host) %>
</td>

Also available in: Unified diff