Project

General

Profile

« Previous | Next » 

Revision c8ce839a

Added by Ohad Levy over 12 years ago

  • ID c8ce839aa6c3849d53adae0d4e8385c78cb0251b

fixes #1187 remove unrequired menus when foreman is not used for provisioning

this includes URLS, setting menu items and buttons.

View differences:

app/views/hosts/edit.html.erb
<span class="title_action">
<%= link_to "Show", @host %>
<%= link_to "View All", hosts_path %>
<%= display_link_if_authorized (@host.managed? ? "Unmanage host" : "Manage host"), hash_for_toggle_manage_host_path(:id => @host.name), {:method => :put} %>
<% if SETTINGS[:unattended] -%>
<%= display_link_if_authorized (@host.managed? ? "Unmanage host" : "Manage host"),
hash_for_toggle_manage_host_path(:id => @host.name), {:method => :put} %>
<% end -%>
</span>
<%= render :partial => 'form' %>
<%= render :partial => 'form' %>

Also available in: Unified diff