diff options
author | Valery Sizov <valery@gitlab.com> | 2017-04-19 18:17:46 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-04-20 13:28:04 +0300 |
commit | 36a8cc3eca62c28ff9001be9378f76b7d59a2f4d (patch) | |
tree | e572b7b46037171d8a7e154a43c04265d0e4c176 /app/views/layouts/header/_default.html.haml | |
parent | 59a330f4cde708986b9112883b4d4f92b76e5c08 (diff) | |
download | gitlab-ce-uassign_on_member_removing.tar.gz |
Remove helpers assigned_issuables_count and cached_assigned_issuables_countuassign_on_member_removing
Diffstat (limited to 'app/views/layouts/header/_default.html.haml')
-rw-r--r-- | app/views/layouts/header/_default.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/header/_default.html.haml b/app/views/layouts/header/_default.html.haml index a9893dea68f..49962aced6f 100644 --- a/app/views/layouts/header/_default.html.haml +++ b/app/views/layouts/header/_default.html.haml @@ -47,13 +47,13 @@ %li = link_to assigned_issues_dashboard_path, title: 'Issues', aria: { label: "Issues" }, data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do = icon('hashtag fw') - - issues_count = cached_assigned_issuables_count(current_user, :issues, :opened) + - issues_count = assigned_issuables_count(:issues) %span.badge.issues-count{ class: ('hidden' if issues_count.zero?) } = number_with_delimiter(issues_count) %li = link_to assigned_mrs_dashboard_path, title: 'Merge requests', aria: { label: "Merge requests" }, data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do = custom_icon('mr_bold') - - merge_requests_count = cached_assigned_issuables_count(current_user, :merge_requests, :opened) + - merge_requests_count = assigned_issuables_count(:merge_requests) %span.badge.merge-requests-count{ class: ('hidden' if merge_requests_count.zero?) } = number_with_delimiter(merge_requests_count) %li |