Project

General

Profile

« Previous | Next » 

Revision 2aceb9a0

Added by Marcello de Sousa over 12 years ago

  • ID 2aceb9a0d1faa638012f815022a6a7f611cb4e42

Fixes #1131 - Minor inconsistency: "Destroy" and "Delete" button have same function and different names

Signed-off-by: Marcello de Sousa <>

View differences:

app/views/hosts/_list.html.erb
<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 %>
<%= display_link_if_authorized 'Delete', hash_for_host_path(:id => host, :auth_action => :destroy), :confirm => "Delete #{host.name}?", :method => :delete, :action => :destroy %>
</td>
</tr>
<% end -%>

Also available in: Unified diff