Sha256: 8c979d143fda51db837cb31112e19e58be1a78e3b78c9497e74645657204cab7
Contents?: true
Size: 628 Bytes
Versions: 31
Compression:
Stored size: 628 Bytes
Contents
<% if current_signed_in_resource && current_signed_in_resource.is_admin? %> <% path_params = {} %> <% link_text = "" %> <% if session[:proxy_resource_id] && session[:proxy_resource_id] == user.id.to_s %> <% path_params = {:resource => user.class.name.pluralize, :id => user.id.to_s, :unset_proxy => true} %> <% link_text = "Detach From This Account" %> <% else %> <% path_params = {:resource => user.class.name.pluralize, :id => user.id.to_s} %> <% link_text = "Switch to This Account" %> <% end %> <%= link_to link_text, set_proxy_resource_profiles_path(path_params), method: :put, remote: true %> <% end %>
Version data entries
31 entries across 31 versions & 1 rubygems