forked from fixin.me/fixin.me
Do not display application menu links with current url
Add "Recover password" link
This commit is contained in:
@@ -16,9 +16,11 @@
|
||||
<%= image_link_to t(:sign_out), "logout", destroy_user_session_path,
|
||||
data: { turbo_method: :delete } %>
|
||||
<% else %>
|
||||
<%= image_link_to t(:sign_in), "login", new_user_session_path, hide: true %>
|
||||
<%= image_link_to t(:register), "account-plus-outline", new_user_registration_path,
|
||||
hide: true %>
|
||||
unless_current: true %>
|
||||
<%= image_link_to t(:recover_password), "lock-reset", new_user_password_path,
|
||||
unless_current: true %>
|
||||
<%= image_link_to t(:sign_in), "login", new_user_session_path, unless_current: true %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<%= link_to "Log in", new_session_path(resource_name) %><br />
|
||||
<% end %>
|
||||
|
||||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
|
||||
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
|
||||
<% end %>
|
||||
|
||||
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
||||
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user