Files
growstuff/app/views/devise/shared/_links.haml
T
Brenda Wallace ca7fd81439 Tidy/login signup (#4958)
* Add authentication dialogs for sign in and sign up

- Implemented AuthDialog component to manage sign in and sign up modals.
- Created SignInModal and SignUpModal components for handling respective authentication processes.
- Added AuthFields component for reusable form fields and error handling.
- Updated various views to utilize the new authentication dialogs instead of traditional links.
- Enhanced user experience by allowing sign in and sign up actions to occur without full page reloads.
- Added feature specs for testing the functionality of the new dialogs.

* Refactor modals and input fields for improved accessibility and styling; adjust button sizes and text formatting

* Refactor authentication forms and modals for improved usability and accessibility; integrate reCAPTCHA handling and enhance error messaging

* Refactor SignUpModal layout for improved responsiveness and accessibility; organize fields into rows and enhance styling

* Refactor session view spec to streamline field checks; remove redundant test and retain essential content expectations
2026-10-17 09:26:39 +10:30

22 lines
1.0 KiB
Plaintext

- if controller_name != 'sessions'
%p.mb-1= link_to 'Sign in', new_session_path(resource_name)
- if devise_mapping.registerable? && controller_name != 'registrations'
%p.mb-1= link_to 'Join free', new_registration_path(resource_name)
- if devise_mapping.recoverable? && controller_name != 'passwords'
%p.mb-1= link_to 'Forgot your password?', new_password_path(resource_name)
- if devise_mapping.confirmable? && controller_name != 'confirmations'
%p.mb-1= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
%p.mb-1= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)
- if devise_mapping.omniauthable?
- resource_class.omniauth_providers.each do |provider|
%p.mb-1
= link_to omniauth_authorize_path(resource_name, provider), class: 'btn' do
= icon 'fab', provider
Sign in with #{provider.to_s.titleize}