Module: Admin::IdentitiesHelper
- Defined in:
- app/helpers/admin/identities_helper.rb
Instance Method Summary collapse
- #identity_cells_to_render?(identities, _user) ⇒ Boolean
- #label_for_identity_provider(identity) ⇒ Object
- #provider_id(identity) ⇒ Object
- #provider_id_cell_testid(identity) ⇒ Object
- #saml_group_cell_testid(identity) ⇒ Object
- #saml_group_link(identity) ⇒ Object
- #scim_identities_collection(_user) ⇒ Object
Instance Method Details
#identity_cells_to_render?(identities, _user) ⇒ Boolean
26 27 28 |
# File 'app/helpers/admin/identities_helper.rb', line 26 def identity_cells_to_render?(identities, _user) identities.present? end |
#label_for_identity_provider(identity) ⇒ Object
5 6 7 8 |
# File 'app/helpers/admin/identities_helper.rb', line 5 def label_for_identity_provider(identity) provider = identity.provider "#{Gitlab::Auth::OAuth::Provider.label_for(provider)} (#{provider})" end |
#provider_id(identity) ⇒ Object
14 15 16 |
# File 'app/helpers/admin/identities_helper.rb', line 14 def provider_id(identity) '-' end |
#provider_id_cell_testid(identity) ⇒ Object
10 11 12 |
# File 'app/helpers/admin/identities_helper.rb', line 10 def provider_id_cell_testid(identity) 'provider_id_blank' end |
#saml_group_cell_testid(identity) ⇒ Object
18 19 20 |
# File 'app/helpers/admin/identities_helper.rb', line 18 def saml_group_cell_testid(identity) 'saml_group_blank' end |
#saml_group_link(identity) ⇒ Object
22 23 24 |
# File 'app/helpers/admin/identities_helper.rb', line 22 def saml_group_link(identity) '-' end |
#scim_identities_collection(_user) ⇒ Object
30 31 32 |
# File 'app/helpers/admin/identities_helper.rb', line 30 def scim_identities_collection(_user) [] end |