diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-23 16:43:08 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-23 16:43:08 +0100 |
commit | 6b92236eeb74fa9854165c498a80f52e25e60e18 (patch) | |
tree | d29e3f2803fa785bd3f9db287bb69152c7f49231 /app/views/projects/commits | |
parent | bc4e25189805879490555ef2782193470f4fe295 (diff) | |
download | gitlab-ce-notes-count-without-system.tar.gz |
Don't include system notes in issue/MR comment count.notes-count-without-system
Diffstat (limited to 'app/views/projects/commits')
-rw-r--r-- | app/views/projects/commits/_commit.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml index 4c853f577e9..c6026f96804 100644 --- a/app/views/projects/commits/_commit.html.haml +++ b/app/views/projects/commits/_commit.html.haml @@ -13,7 +13,7 @@ - note_count = @note_counts.fetch(commit.id, 0) - else - notes = project.notes.for_commit_id(commit.id) - - note_count = notes.count + - note_count = notes.user.count - if note_count > 0 %span.light |