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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/admin/identities_helper.rb')
-rw-r--r--app/helpers/admin/identities_helper.rb36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/helpers/admin/identities_helper.rb b/app/helpers/admin/identities_helper.rb
new file mode 100644
index 00000000000..48e01840394
--- /dev/null
+++ b/app/helpers/admin/identities_helper.rb
@@ -0,0 +1,36 @@
+# frozen_string_literal: true
+
+module Admin
+ module IdentitiesHelper
+ def label_for_identity_provider(identity)
+ provider = identity.provider
+ "#{Gitlab::Auth::OAuth::Provider.label_for(provider)} (#{provider})"
+ end
+
+ def provider_id_cell_testid(identity)
+ 'provider_id_blank'
+ end
+
+ def provider_id(identity)
+ '-'
+ end
+
+ def saml_group_cell_testid(identity)
+ 'saml_group_blank'
+ end
+
+ def saml_group_link(identity)
+ '-'
+ end
+
+ def identity_cells_to_render?(identities, _user)
+ identities.present?
+ end
+
+ def scim_identities_collection(_user)
+ []
+ end
+ end
+end
+
+Admin::IdentitiesHelper.prepend_mod