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
4b0eed3e
Commit
4b0eed3e
authored
Mar 31, 2021
by
yo
Committed by
Yogi
Mar 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gl-badge for badges in dashboard nav
Add Changelog
parent
17c4304e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
app/views/dashboard/_projects_head.html.haml
app/views/dashboard/_projects_head.html.haml
+2
-2
changelogs/unreleased/gl-badge-dashboard.yml
changelogs/unreleased/gl-badge-dashboard.yml
+5
-0
No files found.
app/views/dashboard/_projects_head.html.haml
View file @
4b0eed3e
...
...
@@ -18,11 +18,11 @@
=
nav_link
(
page:
[
dashboard_projects_path
,
root_path
])
do
=
link_to
dashboard_projects_path
,
class:
'shortcuts-activity'
,
data:
{
placement:
'right'
}
do
=
_
(
"Your projects"
)
%span
.badge.
badge-pill
=
limited_counter_with_delimiter
(
@total_user_projects_count
)
%span
.badge.
gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
=
limited_counter_with_delimiter
(
@total_user_projects_count
)
=
nav_link
(
page:
starred_dashboard_projects_path
)
do
=
link_to
starred_dashboard_projects_path
,
data:
{
placement:
'right'
}
do
=
_
(
"Starred projects"
)
%span
.badge.
badge-pill
=
limited_counter_with_delimiter
(
@total_starred_projects_count
)
%span
.badge.
gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
=
limited_counter_with_delimiter
(
@total_starred_projects_count
)
=
nav_link
(
page:
[
explore_root_path
,
trending_explore_projects_path
,
starred_explore_projects_path
,
explore_projects_path
])
do
=
link_to
explore_root_path
,
data:
{
placement:
'right'
}
do
=
_
(
"Explore projects"
)
...
...
changelogs/unreleased/gl-badge-dashboard.yml
0 → 100644
View file @
4b0eed3e
---
title
:
Add gl-badge for badges in dashboard nav
merge_request
:
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