|
1 |
| -hr |
2 |
| -ul |
3 |
| - - if controller_name != 'sessions' |
4 |
| - li= link_to "Sign in", new_session_path(resource_name) |
5 |
| - - if devise_mapping.registerable? && controller_name != 'registrations' |
6 |
| - li= link_to "Sign up", new_registration_path(resource_name) |
7 |
| - - if devise_mapping.recoverable? && controller_name != 'passwords' |
8 |
| - li= link_to "Forgot your password?", new_password_path(resource_name) |
9 |
| - - if devise_mapping.confirmable? && controller_name != 'confirmations' |
10 |
| - li= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) |
11 |
| - - if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' |
12 |
| - li= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) |
13 |
| - - if devise_mapping.omniauthable? |
14 |
| - - resource_class.omniauth_providers.each do |provider| |
15 |
| - li= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) |
| 1 | +- unless current_user |
| 2 | + hr |
| 3 | + ul |
| 4 | + - if controller_name != 'sessions' |
| 5 | + li= link_to "Sign in", new_session_path(resource_name) |
| 6 | + - if devise_mapping.registerable? && controller_name != 'registrations' |
| 7 | + li= link_to "Sign up", new_registration_path(resource_name) |
| 8 | + - if devise_mapping.recoverable? && controller_name != 'passwords' |
| 9 | + li= link_to "Forgot your password?", new_password_path(resource_name) |
| 10 | + - if devise_mapping.confirmable? && controller_name != 'confirmations' |
| 11 | + li= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) |
| 12 | + - if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' |
| 13 | + li= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) |
| 14 | + - if devise_mapping.omniauthable? |
| 15 | + - resource_class.omniauth_providers.each do |provider| |
| 16 | + li= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) |
0 commit comments