Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
21c021af
Commit
21c021af
authored
Apr 05, 2021
by
Yogi
Committed by
Kushal Pandya
Apr 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gl-badge for badges in project members page
parent
17c4304e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
app/views/projects/project_members/index.html.haml
app/views/projects/project_members/index.html.haml
+4
-4
changelogs/unreleased/gl-badge-project-members.yml
changelogs/unreleased/gl-badge-project-members.yml
+5
-0
No files found.
app/views/projects/project_members/index.html.haml
View file @
21c021af
...
...
@@ -54,25 +54,25 @@
=
link_to
'#tab-members'
,
class:
[
'nav-link'
,
(
'active'
unless
groups_tab_active?
)],
data:
{
toggle:
'tab'
}
do
%span
=
_
(
'Members'
)
%span
.badge.
badge-pill
=
@project_members
.
total_count
%span
.badge.
gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
=
@project_members
.
total_count
-
if
show_groups?
(
@group_links
)
%li
.nav-item
=
link_to
'#tab-groups'
,
class:
[
'nav-link'
,
(
'active'
if
groups_tab_active?
)]
,
data:
{
toggle:
'tab'
,
qa_selector:
'groups_list_tab'
}
do
%span
=
_
(
'Groups'
)
%span
.badge.
badge-pill
=
@group_links
.
count
%span
.badge.
gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
=
@group_links
.
count
-
if
show_invited_members?
(
@project
,
@invited_members
)
%li
.nav-item
=
link_to
'#tab-invited-members'
,
class:
'nav-link'
,
data:
{
toggle:
'tab'
}
do
%span
=
_
(
'Invited'
)
%span
.badge.
badge-pill
=
@invited_members
.
count
%span
.badge.
gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
=
@invited_members
.
count
-
if
show_access_requests?
(
@project
,
@requesters
)
%li
.nav-item
=
link_to
'#tab-access-requests'
,
class:
'nav-link'
,
data:
{
toggle:
'tab'
}
do
%span
=
_
(
'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-members
.tab-pane
{
class:
(
'active'
unless
groups_tab_active?
)
}
.js-project-members-list
{
data:
project_members_list_data_attributes
(
@project
,
@project_members
)
}
...
...
changelogs/unreleased/gl-badge-project-members.yml
0 → 100644
View file @
21c021af
---
title
:
Add gl-badge for badges in project members page
merge_request
:
57934
author
:
Yogi (@yo)
type
:
changed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment