diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2018-04-17 16:20:40 +0300 |
---|---|---|
committer | George Tsiolis <tsiolis.g@gmail.com> | 2019-01-15 20:07:19 +0200 |
commit | 1d1f935c6e9e536975aa5c8975855281e8a12225 (patch) | |
tree | 154780b8cba5145abca78b579386ba03e29e61da | |
parent | 99ee6c82b8932827f980a16a5fff140de74df89a (diff) | |
download | gitlab-ce-1d1f935c6e9e536975aa5c8975855281e8a12225.tar.gz |
Add badge count to projects and groups
-rw-r--r-- | app/views/dashboard/_groups_head.html.haml | 1 | ||||
-rw-r--r-- | app/views/dashboard/_projects_head.html.haml | 2 | ||||
-rw-r--r-- | changelogs/unreleased/add-badge-count-to-projects-and-groups.yml | 5 |
3 files changed, 8 insertions, 0 deletions
diff --git a/app/views/dashboard/_groups_head.html.haml b/app/views/dashboard/_groups_head.html.haml index 8ab5dc37f34..e85fd0db93c 100644 --- a/app/views/dashboard/_groups_head.html.haml +++ b/app/views/dashboard/_groups_head.html.haml @@ -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 diff --git a/app/views/dashboard/_projects_head.html.haml b/app/views/dashboard/_projects_head.html.haml index 1050945b15a..831ea00cee1 100644 --- a/app/views/dashboard/_projects_head.html.haml +++ b/app/views/dashboard/_projects_head.html.haml @@ -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 diff --git a/changelogs/unreleased/add-badge-count-to-projects-and-groups.yml b/changelogs/unreleased/add-badge-count-to-projects-and-groups.yml new file mode 100644 index 00000000000..33f8c53cc97 --- /dev/null +++ b/changelogs/unreleased/add-badge-count-to-projects-and-groups.yml @@ -0,0 +1,5 @@ +--- +title: Add badge count to projects and groups +merge_request: 18425 +author: George Tsiolis +type: changed |