% title _("Proxies") %> <% title_actions display_link_if_authorized(_("New Proxy"), hash_for_new_smart_proxy_path) %>
<%= s_("SmartProxy|Name") %> | <%= s_("SmartProxy|Url") %> | <%= _("Features") %> | |
---|---|---|---|
<%= link_to_if_authorized proxy.name, hash_for_edit_smart_proxy_path(:id => proxy.id) %> | <%=h proxy.url %> | <%=h proxy.features.to_sentence %> | <% 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)) end, 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.detect{|f| f.name == "DHCP" } display_link_if_authorized(_("Import Subnets"), hash_for_import_subnets_path(:smart_proxy_id => proxy)) end, display_delete_if_authorized(hash_for_smart_proxy_path(:id => proxy), :confirm => _("Delete %s?") % proxy.name))%> |