debian-mirror-gitlab/app/helpers/profiles_helper.rb

8 lines
222 B
Ruby
Raw Normal View History

2017-09-10 17:25:29 +05:30
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