Sha256: 0e2bf1d667cd80c200fdd42dc6bc31a8ca599839f564822d5caad5b07a61b42c
Contents?: true
Size: 1.35 KB
Versions: 57
Compression:
Stored size: 1.35 KB
Contents
<% links = [{ condition: controller_name != 'sessions', label: t('devise.log_in'), url: -> { new_session_path(resource_name) } },{ condition: devise_mapping.registerable? && controller_name != 'registrations', label: t('devise.sign_up'), url: -> {new_registration_path(resource_name) } },{ condition: devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations', label: t('devise.forgot_password'), url: -> {new_password_path(resource_name) } },{ condition: devise_mapping.confirmable? && controller_name != 'confirmations', label: t('devise.unreceived_confirmation'), url: -> {new_confirmation_path(resource_name) } },{ condition: devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks', label: t('devise.unreceived_unlock'), url: -> { new_unlock_path(resource_name) } }] if devise_mapping.omniauthable? links += resource_class.omniauth_providers.map do |provider| { condition: true, label: t("devise.log_in_with", provider: ::OmniAuth::Utils.camelize(provider)), url: -> { omniauth_authorize_path(resource_name, provider) } } end end %> <% links.each do |link| %> <% if link.fetch(:condition) %> <%= link_to link.fetch(:label), link.fetch(:url).call %><br/> <% end %> <% end %>
Version data entries
57 entries across 57 versions & 1 rubygems