gitlab-org--gitlab-foss/app/helpers/profile_helper.rb
2015-01-08 14:26:43 -08:00

19 lines
361 B
Ruby

module ProfileHelper
def oauth_active_class(provider)
if current_user.identities.exists?(provider: provider.to_s)
'active'
end
end
def show_profile_username_tab?
current_user.can_change_username?
end
def show_profile_social_tab?
enabled_social_providers.any?
end
def show_profile_remove_tab?
signup_enabled?
end
end