maestrano/mno-enterprise

View on GitHub
api/app/views/mno_enterprise/auth/shared/_links.html.haml

Summary

Maintainability
Test Coverage
- if controller_name != 'sessions'
  = link_to t('mno_enterprise.auth.shared.links.login'), new_session_path(resource_name)
  %br/

- if devise_mapping.registerable? && controller_name != 'registrations'
  = link_to t('mno_enterprise.auth.shared.links.signup'), new_registration_path(resource_name)
  %br/

- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' && MnoEnterprise.style.devise.forgot_password_link_shown
  = link_to t('mno_enterprise.auth.shared.links.recover_password'), new_password_path(resource_name)
  %br/

- if devise_mapping.confirmable? && controller_name != 'confirmations' && MnoEnterprise.style.devise.confirmation_link_shown
  = link_to t('mno_enterprise.auth.shared.links.resend_confirmation'), new_confirmation_path(resource_name)
  %br/

- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' && MnoEnterprise.style.devise.unlock_link_shown
  = link_to t('mno_enterprise.auth.shared.links.unlock'), new_unlock_path(resource_name)
  %br/