Remove image_element_to helper

This commit is contained in:
2024-05-06 19:04:56 +02:00
parent aa83f17a4c
commit 1b6bda4e70
2 changed files with 20 additions and 33 deletions

View File

@@ -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>