forked from fixin.me/fixin.me
Remove image_element_to helper
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
<body>
|
||||
<header class="header">
|
||||
<% if user_signed_in? %>
|
||||
<%= image_link_to current_user.email, "account-wrench-outline",
|
||||
edit_user_registration_path, current: :hide %>
|
||||
<%= image_link_to_unless_current(current_user.email, "account-wrench-outline",
|
||||
edit_user_registration_path) {} %>
|
||||
<% if current_user_disguised? %>
|
||||
<%= image_link_to t(".revert"), "incognito-off", revert_users_path %>
|
||||
<% else %>
|
||||
@@ -35,9 +35,9 @@
|
||||
method: :delete %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= image_link_to t(:sign_in), "login", new_user_session_path, current: :hide %>
|
||||
<%= image_link_to t(:register), "account-plus-outline", new_user_registration_path,
|
||||
current: :hide %>
|
||||
<%= image_link_to_unless_current(t(:sign_in), "login", new_user_session_path) {} %>
|
||||
<%= image_link_to_unless_current(t(:register), "account-plus-outline",
|
||||
new_user_registration_path) {} %>
|
||||
<% end %>
|
||||
</header>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user