summaryrefslogtreecommitdiff
path: root/app/views/layouts/nav
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2018-05-17 16:39:48 -0300
committerFelipe Artur <felipefac@gmail.com>2018-05-24 11:51:18 -0300
commitaee2b235499f9ea179aed82d6beb8ea955986aa3 (patch)
tree7149882f41b3f42879b182e852f9709c50bf143f /app/views/layouts/nav
parentf2da7ebb572ff0128e236ca88e322f9fdabb35ec (diff)
downloadgitlab-ce-aee2b235499f9ea179aed82d6beb8ea955986aa3.tar.gz
Fix sidebar issue countissue_38418
Diffstat (limited to 'app/views/layouts/nav')
-rw-r--r--app/views/layouts/nav/sidebar/_project.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/nav/sidebar/_project.html.haml b/app/views/layouts/nav/sidebar/_project.html.haml
index c3ea592a6b5..3223dc903f5 100644
--- a/app/views/layouts/nav/sidebar/_project.html.haml
+++ b/app/views/layouts/nav/sidebar/_project.html.haml
@@ -89,7 +89,7 @@
= _('Issues')
- if @project.issues_enabled?
%span.badge.count.issue_counter
- = number_with_delimiter(@project.open_issues_count)
+ = number_with_delimiter(@project.open_issues_count(current_user))
%ul.sidebar-sub-level-items
= nav_link(controller: :issues, html_options: { class: "fly-out-top-item" } ) do
@@ -98,7 +98,7 @@
= _('Issues')
- if @project.issues_enabled?
%span.badge.count.issue_counter.fly-out-badge
- = number_with_delimiter(@project.open_issues_count)
+ = number_with_delimiter(@project.open_issues_count(current_user))
%li.divider.fly-out-top-item
= nav_link(controller: :issues, action: :index) do
= link_to project_issues_path(@project), title: 'Issues' do