- links = [] - if controller_name != 'sessions' - links << ['Sign in', new_session_path(resource_name)] - if devise_mapping.registerable? && controller_name != 'registrations' - links << ['Sign up', new_registration_path(resource_name)] - if devise_mapping.recoverable? && controller_name != 'passwords' - links << ['Forgot your password?', new_password_path(resource_name)] - if devise_mapping.confirmable? && controller_name != 'confirmations' - links << ['Didn\'t receive confirmation instructions?', new_confirmation_path(resource_name)] - if devise_mapping.omniauthable? - resource_class.omniauth_providers.each do |provider| - links << ["Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider)] - if links.any? %p= links.map { |title, url| link_to title, url }.join(' · ').html_safe