Sha256: 55204edcfaf10d7c78ff601d95627adcdb01a2adfc18601fec73fee14faef286

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

-if !configatron.auth_providers.nil?
  -remaining_providers = configatron.auth_providers.to_hash.keys.map(&:to_s) - @authorizations.map(&:provider)
  #omniauth_connect

    -if @authorizations.any?
      %h3 You can sign in to this account using:
      .authentications
        - @authorizations.each do |authorization|
          %span.auth_providers_used
            = image_tag "auth/#{authorization.provider}_32.png"
            -if @authorizations.size > 1
              = link_to image_tag("auth/remove.png"), authorization, :confirm => t('users.edit_account.omniauth.confirm_remove', :provider => authorization.provider.capitalize), :method => :delete, :class => "omniauth_remove", :title => t('users.edit_account.omniauth.title_remove', :provider => authorization.provider.capitalize)
        .clear

    
    -if remaining_providers.any?
      %em Add another provider to sign in with:
      %ul
        -remaining_providers.each do |provider|
          -alt = t('sessions.new.omniauth.button_alt', :provider => provider.capitalize)
          %li= link_to(image_tag("auth/#{provider}_32.png", :alt => alt), "/auth/#{provider}", :title => alt)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/views/users/_omniauth_connect.html.haml
community_engine-2.3.1 app/views/users/_omniauth_connect.html.haml
community_engine-2.3.0 app/views/users/_omniauth_connect.html.haml
community_engine-2.1.0 app/views/users/_omniauth_connect.html.haml
community_engine-2.0.0 app/views/users/_omniauth_connect.html.haml