Revision d9a2ebac
Added by Ohad Levy almost 12 years ago
- ID d9a2ebac6e9ec0082e60265b794f54a29a1f7e65
app/views/smart_proxies/index.html.erb | ||
---|---|---|
<td><%=h proxy.url %></td>
|
||
<td><%=h proxy.features.to_sentence %></td>
|
||
<td>
|
||
<% ca = proxy.features.include? Feature.find_by_name("Puppet CA") %>
|
||
<% ca = proxy.features.detect{|f| f.name == "Puppet CA"} %>
|
||
<%= action_buttons(
|
||
if ca
|
||
display_link_if_authorized("Certificates", hash_for_smart_proxy_puppetca_index_path(:smart_proxy_id => proxy), :class=>"btn")
|
||
... | ... | |
if ca
|
||
display_link_if_authorized("Autosign", hash_for_smart_proxy_autosign_index_path(:smart_proxy_id => proxy))
|
||
end,
|
||
if SETTINGS[:unattended] and proxy.features.include? Feature.find_by_name("DHCP")
|
||
if SETTINGS[:unattended] and proxy.features.detect{|f| f.name == "DHCP" }
|
||
display_link_if_authorized("Import Subnets", hash_for_import_subnets_path(:smart_proxy_id => proxy),:class => ca ? "" : "btn")
|
||
end,
|
||
display_delete_if_authorized(hash_for_smart_proxy_path(:id => proxy), :confirm => "Delete #{proxy.name}?"))%>
|
Also available in: Unified diff
[SQL optimizations] - many small optimizations
This is one of a few patches aim to improve Foreman performance