gitlab-org--gitlab-foss/app/helpers/profiles_helper.rb
2017-06-07 11:13:57 -04:00

7 lines
222 B
Ruby

module ProfilesHelper
def email_provider_label
return unless current_user.external_email?
current_user.email_provider.present? ? Gitlab::OAuth::Provider.label_for(current_user.email_provider) : "LDAP"
end
end