Commit dc809983 authored by Douwe Maan's avatar Douwe Maan

Link issue/MR list item comments counter to comments

parent d399ffa2
...@@ -18,13 +18,13 @@ ...@@ -18,13 +18,13 @@
- note_count = issue.notes.user.count - note_count = issue.notes.user.count
- if note_count > 0 - if note_count > 0
   
%span = link_to issue_path(issue) + "#notes" do
%i.fa.fa-comments = icon('comments')
= note_count = note_count
- else - else
   
%span.issue-no-comments = link_to issue_path(issue) + "#notes", class: "issue-no-comments" do
%i.fa.fa-comments = icon('comments')
= 0 = 0
.issue-info .issue-info
......
...@@ -23,13 +23,13 @@ ...@@ -23,13 +23,13 @@
= link_to_member(merge_request.source_project, merge_request.assignee, name: false, title: "Assigned to :name") = link_to_member(merge_request.source_project, merge_request.assignee, name: false, title: "Assigned to :name")
- if note_count > 0 - if note_count > 0
   
%span = link_to merge_request_path(merge_request) + "#notes" do
%i.fa.fa-comments = icon('comments')
= note_count = note_count
- else - else
   
%span.merge-request-no-comments = link_to merge_request_path(merge_request) + "#notes", class: "merge-request-no-comments" do
%i.fa.fa-comments = icon('comments')
= 0 = 0
.merge-request-info .merge-request-info
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment