Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
b28d3bef0ac4
Commit
d7f4b7eb
authored
Apr 17, 2018
by
George Tsiolis
Browse files
Add badge count to projects and groups
parent
a2b0e18f9d69
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/views/dashboard/_groups_head.html.haml
View file @
b28d3bef
...
...
@@ -10,6 +10,7 @@
=
nav_link
(
page:
dashboard_groups_path
)
do
=
link_to
dashboard_groups_path
,
title:
_
(
"Your groups"
)
do
Your groups
%span
.badge.count
=
limited_counter_with_delimiter
(
current_user
.
groups
)
=
nav_link
(
page:
explore_groups_path
)
do
=
link_to
explore_groups_path
,
title:
_
(
"Explore public groups"
)
do
Explore public groups
...
...
app/views/dashboard/_projects_head.html.haml
View file @
b28d3bef
...
...
@@ -15,9 +15,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.count
=
limited_counter_with_delimiter
(
ProjectsFinder
.
new
(
params:
{
non_public:
true
},
current_user:
current_user
).
execute
)
=
nav_link
(
page:
starred_dashboard_projects_path
)
do
=
link_to
starred_dashboard_projects_path
,
data:
{
placement:
'right'
}
do
Starred projects
%span
.badge.count
=
limited_counter_with_delimiter
(
ProjectsFinder
.
new
(
params:
{
starred:
true
},
current_user:
current_user
).
execute
)
=
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/add-badge-count-to-projects-and-groups.yml
0 → 100644
View file @
b28d3bef
---
title
:
Add badge count to projects and groups
merge_request
:
18425
author
:
George Tsiolis
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