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
39299eec
Commit
39299eec
authored
Apr 30, 2021
by
Yogi
Committed by
Kushal Pandya
Apr 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gl-badge for badges in snippets page nav
parent
13b260da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
app/views/snippets/_snippets_scope_menu.html.haml
app/views/snippets/_snippets_scope_menu.html.haml
+4
-4
changelogs/unreleased/gl-badge-snippets.yml
changelogs/unreleased/gl-badge-snippets.yml
+5
-0
No files found.
app/views/snippets/_snippets_scope_menu.html.haml
View file @
39299eec
...
...
@@ -5,7 +5,7 @@
%li
{
class:
active_when
(
params
[
:scope
].
nil?
)
}
=
link_to
subject_snippets_path
(
subject
)
do
=
_
(
"All"
)
%span
.badge.badge-
pill
%span
.badge.badge-
muted.badge-pill.gl-badge.sm
-
if
include_private
=
counts
[
:total
]
-
else
...
...
@@ -15,17 +15,17 @@
%li
{
class:
active_when
(
params
[
:scope
]
==
"are_private"
)
}
=
link_to
subject_snippets_path
(
subject
,
scope:
'are_private'
)
do
=
_
(
"Private"
)
%span
.badge.badge-
pill
%span
.badge.badge-
muted.badge-pill.gl-badge.sm
=
counts
[
:are_private
]
%li
{
class:
active_when
(
params
[
:scope
]
==
"are_internal"
)
}
=
link_to
subject_snippets_path
(
subject
,
scope:
'are_internal'
)
do
=
_
(
"Internal"
)
%span
.badge.badge-
pill
%span
.badge.badge-
muted.badge-pill.gl-badge.sm
=
counts
[
:are_internal
]
%li
{
class:
active_when
(
params
[
:scope
]
==
"are_public"
)
}
=
link_to
subject_snippets_path
(
subject
,
scope:
'are_public'
)
do
=
_
(
"Public"
)
%span
.badge.badge-
pill
%span
.badge.badge-
muted.badge-pill.gl-badge.sm
=
counts
[
:are_public
]
changelogs/unreleased/gl-badge-snippets.yml
0 → 100644
View file @
39299eec
---
title
:
Add gl-badge for badges in snippets nav
merge_request
:
57966
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