forked from fixin.me/fixin.me
Add Users#disguise/#revert
This commit is contained in:
@@ -13,10 +13,15 @@
|
||||
<body>
|
||||
<div class="app-menu">
|
||||
<% if user_signed_in? %>
|
||||
<%= image_link_to t(:sign_out), "logout", destroy_user_session_path,
|
||||
data: { turbo: true, turbo_method: :delete } %>
|
||||
<%= image_link_to t(:profile), "account-wrench-outline", edit_user_registration_path,
|
||||
current: :hide %>
|
||||
<% if current_user_disguised? %>
|
||||
<%= image_link_to t(:revert), "incognito-off", revert_users_path,
|
||||
data: {turbo: true, turbo_method: :post} %>
|
||||
<% else %>
|
||||
<%= image_link_to t(:sign_out), "logout", destroy_user_session_path,
|
||||
data: {turbo: true, turbo_method: :delete} %>
|
||||
<% end %>
|
||||
<%= image_link_to current_user.email, "account-wrench-outline",
|
||||
edit_user_registration_path, current: :hide %>
|
||||
<% else %>
|
||||
<%= image_link_to t(:register), "account-plus-outline", new_user_registration_path,
|
||||
current: :hide %>
|
||||
|
||||
Reference in New Issue
Block a user