hummingbird-me/hummingbird

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

Summary

Maintainability
Test Coverage
- if controller_name != 'sessions'
  %p
    Already Registered?
    = link_to "Login now", "/sign-in"

- if controller_name != 'registrations' and devise_mapping.registerable?
  %p
    Don't have an account?
    = link_to "Create one now", "/sign-up"

- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
  %p= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)

- if devise_mapping.confirmable? && controller_name != 'confirmations'
  %p= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)