Welcome to mirror list, hosted at ThFree Co, Russian Federation.

profiles_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 45238f12ac7d1ae9598d33e15a3ebf5d2e3013f6 (plain)
1
2
3
4
5
6
7
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