forked from fixin.me/fixin.me
Move 'Register' link to application menu
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
data: { turbo_method: :delete } do %>
|
||||
<%= link_to t(:sign_in), new_user_session_path %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to_unless(user_signed_in?, t(:register), new_user_registration_path) { } %>
|
||||
</div>
|
||||
|
||||
<div class="flashes">
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
<%= link_to "Log in", new_session_path(resource_name) %><br />
|
||||
<% end %>
|
||||
|
||||
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
||||
<%= link_to "Sign up", new_registration_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 %>
|
||||
|
||||
Reference in New Issue
Block a user