diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-09 12:48:13 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-09 12:50:16 +0200 |
commit | 383a840c50ca8f6df19677e93357e9dc6c0e043c (patch) | |
tree | 3597f5ee2a92b551a01ac207f440ae85bcb3d9c6 /app/views/application | |
parent | dd9e0691acae3eb63bdfbc8665eb3f8ce516536d (diff) | |
download | incommon-map-383a840c50ca8f6df19677e93357e9dc6c0e043c.tar.gz |
Enable switching Agent
Switching current Agent can help with roles and resource access.
Go to your dashboard by clicking the avatar.
Select agent and hit "Select"
Diffstat (limited to 'app/views/application')
-rw-r--r-- | app/views/application/_user_info.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/application/_user_info.html.erb b/app/views/application/_user_info.html.erb index 3220c89..be3b6c5 100644 --- a/app/views/application/_user_info.html.erb +++ b/app/views/application/_user_info.html.erb @@ -3,11 +3,11 @@ <% if current_user.present? %> <a href="/my/dashboard"><%= image_tag current_user.avatar_url, alt: current_user.username %></a> <ul> - <%= tag.li(link_to(new_agent_switch_url, method: :get, remote: true, title: "Changer d'Agent") do + <%#= tag.li(link_to(new_agent_switch_url, method: :get, remote: true, title: "Changer d'Agent") do "Agent: %s" % current_agent end, id: 'current_agent_name') %> + <%= tag.li agent_selector_form %> <%= tag.li link_to("Ajouter un point", new_agent_resource_url(agent_id: current_agent)) %> - <%= tag.li link_to("Mon compte", account_url(current_user.id)) %> <%= tag.li link_to("Terminer la session", logout_url) %> </ul> <% else %> |