debian-mirror-gitlab/app/views/profiles/accounts/_providers.html.haml

22 lines
1.2 KiB
Text
Raw Normal View History

2019-07-07 11:18:12 +05:30
%label.label-bold
= s_('Profiles|Connected Accounts')
%p= s_('Profiles|Click on icon to activate signin with one of the following services')
- providers.each do |provider|
- unlink_allowed = unlink_provider_allowed?(provider)
- link_allowed = link_provider_allowed?(provider)
- if unlink_allowed || link_allowed
.provider-btn-group
.provider-btn-image
= provider_image_tag(provider)
- if auth_active?(provider)
- if unlink_allowed
= link_to unlink_profile_account_path(provider: provider), method: :delete, class: 'provider-btn' do
2020-11-24 15:15:51 +05:30
= s_('Profiles|Disconnect %{provider}') % { provider: label_for_provider(provider) }
2019-07-07 11:18:12 +05:30
- else
%a.provider-btn
2020-11-24 15:15:51 +05:30
= s_('Profiles|%{provider} Active') % { provider: label_for_provider(provider) }
2019-07-07 11:18:12 +05:30
- elsif link_allowed
2020-01-01 13:55:28 +05:30
= link_to omniauth_authorize_path(:user, provider), method: :post, class: 'provider-btn gl-text-blue-500' do
2020-11-24 15:15:51 +05:30
= s_('Profiles|Connect %{provider}') % { provider: label_for_provider(provider) }
2019-07-07 11:18:12 +05:30
= render_if_exists 'profiles/accounts/group_saml_unlink_buttons', group_saml_identities: group_saml_identities