Project

General

Profile

« Previous | Next » 

Revision 4c091cd8

Added by Ohad Levy over 12 years ago

  • ID 4c091cd8bfb4efbdc116743109c0a30de2f97d90

fixes #1201 - Import Subnets from DHCP server

View differences:

app/views/smart_proxies/index.html.erb
<% if proxy.features.include? Feature.find_by_name("Puppet CA") -%>
<%= display_link_if_authorized "Certificates", hash_for_smart_proxy_puppetca_index_path(:smart_proxy_id => proxy) %>
<%= display_link_if_authorized "Autosign", hash_for_smart_proxy_autosign_index_path(:smart_proxy_id => proxy) %>
<% end -%>
<% end -%>
<% if proxy.features.include? Feature.find_by_name("DHCP") -%>
<%= display_link_if_authorized "Import Subnets", hash_for_import_subnets_path(:smart_proxy_id => proxy) %>
<% end -%>
<%= display_link_if_authorized "Destroy", hash_for_smart_proxy_path(:id => proxy, :auth_action => :destroy), :confirm => "Destroy #{proxy.name}?", :method => :delete %>
</td>
</tr>

Also available in: Unified diff