dl.devise-links
  - devise_mapping = Devise.mappings[resource_name]
  dt= t 'devise.links.prefix'
  - if controller_name != 'sessions'
    dd= link_to t('devise.sign_in.link'), new_session_path(resource_name), class: ['devise-link', 'new-session']

  - if devise_mapping.registerable? && controller_name != 'registrations'
    dd= link_to t('devise.registrations.link'), new_registration_path(resource_name), class: ['devise-link', 'new-registration']
  - if resource_name == :employee and controller_name != 'new_suppliers'
    dd= link_to t('devise.registrations.link'), new_suppliers_path, class: ['devise-link', 'new-registration']

  - if devise_mapping.recoverable? && controller_name != 'passwords'
    dd= link_to t('devise.passwords.link'), new_password_path(resource_name), class: ['devise-link', 'forgot-password']

  - if devise_mapping.confirmable? && controller_name != 'confirmations'
    dd= link_to t('devise.confirmations.did_not_receive_instructions_link'), new_confirmation_path(resource_name), class: ['devise-link', 'did-not-receive-instructions']

  - if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
    dd= link_to t('devise.unlocks.did_not_receive_instructions_link'), new_unlock_path(resource_name), class: ['devise-link', 'did-not-receive-instructions']

  - if devise_mapping.omniauthable?
    - resource_class.omniauth_providers.each do |provider|
      dd= link_to t('devise.omniauth_callbacks.sign_in_with', provider: provider.to_s.titleize), omniauth_authorize_path(resource_name, provider), class: ['devise-link', 'omniauth', provider]
