_links.html.erb 1.2 KB

12345678910111213141516171819202122232425
  1. <%- if controller_name != 'sessions' %>
  2. <%= link_to t(".sign_in"), new_session_path(resource_name) %><br />
  3. <% end %>
  4. <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
  5. <%= link_to t(".sign_up"), new_registration_path(resource_name) %><br />
  6. <% end %>
  7. <%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
  8. <%= link_to t(".forgot_your_password"), new_password_path(resource_name) %><br />
  9. <% end %>
  10. <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
  11. <%= link_to t('.didn_t_receive_confirmation_instructions'), new_confirmation_path(resource_name) %><br />
  12. <% end %>
  13. <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
  14. <%= link_to t('.didn_t_receive_unlock_instructions'), new_unlock_path(resource_name) %><br />
  15. <% end %>
  16. <%- if devise_mapping.omniauthable? %>
  17. <%- resource_class.omniauth_providers.each do |provider| %>
  18. <%= link_to t('.sign_in_with_provider', provider: OmniAuth::Utils.camelize(provider)), omniauth_authorize_path(resource_name, provider), method: :post %><br />
  19. <% end %>
  20. <% end %>