Sha256: 17e966ce740da5b094a927560def22acfc74dc1a16e18618402e6c803e6a6f3e

Contents?: true

Size: 799 Bytes

Versions: 31

Compression:

Stored size: 799 Bytes

Contents

<% if session[:proxy_resource_id] %>
		<% if session[:proxy_resource_class] %>
			<% resource = session[:proxy_resource_class].constantize.find(session[:proxy_resource_id]) %>
			<div>
			<ul class="collection acting_for_user">
			    <li class="collection-item avatar">
			      <img src="/assets/placeholder.png" alt="" class="circle">
			      <span class="title">You are acting on behalf of</span>
			      <p><%= resource.email || resource.additional_login_param %><br>
			      </p>
			      <!-- add a link to detach -->
			      <p>
			      	<%= link_to "Detach", set_proxy_resource_profiles_path({:resource => resource.class.name.pluralize, :id => resource.id.to_s, :unset_proxy => true}), method: :put, remote: true %>
			      </p>
			    </li>
			</ul>
			</div>
		<% end %>
<% end %> 

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.5.9 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.5.8 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.5.7 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.5.6 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.5.5 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.5.4 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.5.3 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.5.2 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.5.1 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.5.0 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.4.9 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.4.8 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.4.7 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.4.6 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.4.5 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.4.4 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.4.3 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.4.2 app/views/layouts/auth/navbar/_acting_for_user.html.erb
wordjelly-auth-1.4.0 app/views/layouts/auth/navbar/_acting_for_user.html.erb