Growstuff/growstuff

View on GitHub
app/views/devise/shared/_links.haml

Summary

Maintainability
Test Coverage
-# - if devise_mapping.recoverable? && controller_name != 'passwords'
-#   = link_to "Forgot password?", new_password_path(resource_name)
-#   %br

%hr/
- if devise_mapping.confirmable? && controller_name != 'confirmations'
  %p
    %small= 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
    %small= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)

- if devise_mapping.omniauthable?
  - resource_class.omniauth_providers.each do |provider|
    %p
      = link_to omniauth_authorize_path(resource_name, provider), class: 'btn' do
        = icon 'fab', provider
        Sign in with #{provider.to_s.titleize}

  %p
    Not a member?
    %strong= link_to 'Register', new_member_registration_path