Commit 148c1648 authored by Yogi's avatar Yogi Committed by Vitaly Slobodin

Add gl-badge for badges in group members page

parent 17c4304e
...@@ -41,25 +41,25 @@ ...@@ -41,25 +41,25 @@
= link_to '#tab-members', class: ['nav-link', ('active' unless invited_active)], data: { toggle: 'tab' } do = link_to '#tab-members', class: ['nav-link', ('active' unless invited_active)], data: { toggle: 'tab' } do
%span %span
= _('Members') = _('Members')
%span.badge.badge-pill= @members.total_count %span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm= @members.total_count
- if @group.shared_with_group_links.any? - if @group.shared_with_group_links.any?
%li.nav-item %li.nav-item
= link_to '#tab-groups', class: ['nav-link'] , data: { toggle: 'tab', qa_selector: 'groups_list_tab' } do = link_to '#tab-groups', class: ['nav-link'] , data: { toggle: 'tab', qa_selector: 'groups_list_tab' } do
%span %span
= _('Groups') = _('Groups')
%span.badge.badge-pill= @group.shared_with_group_links.count %span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm= @group.shared_with_group_links.count
- if show_invited_members - if show_invited_members
%li.nav-item %li.nav-item
= link_to '#tab-invited-members', class: ['nav-link', ('active' if invited_active)], data: { toggle: 'tab' } do = link_to '#tab-invited-members', class: ['nav-link', ('active' if invited_active)], data: { toggle: 'tab' } do
%span %span
= _('Invited') = _('Invited')
%span.badge.badge-pill= @invited_members.total_count %span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm= @invited_members.total_count
- if show_access_requests - if show_access_requests
%li.nav-item %li.nav-item
= link_to '#tab-access-requests', class: 'nav-link', data: { toggle: 'tab' } do = link_to '#tab-access-requests', class: 'nav-link', data: { toggle: 'tab' } do
%span %span
= _('Access requests') = _('Access requests')
%span.badge.badge-pill= @requesters.count %span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm= @requesters.count
.tab-content .tab-content
#tab-members.tab-pane{ class: ('active' unless invited_active) } #tab-members.tab-pane{ class: ('active' unless invited_active) }
.js-group-members-list{ data: group_members_list_data_attributes(@group, @members) } .js-group-members-list{ data: group_members_list_data_attributes(@group, @members) }
......
---
title: Add gl-badge for badges in group members page
merge_request: 57933
author: Yogi (@yo)
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment