Merge pull request #1629 from riyad/show-notes-indicator-for-commits-and-merge-requests
Show numer of notes for commits and merge requests
This commit is contained in:
commit
dda852a0d5
5 changed files with 33 additions and 1 deletions
|
@ -13,3 +13,10 @@
|
|||
= time_ago_in_words(commit.committed_date)
|
||||
ago
|
||||
|
||||
|
||||
%span.notes_count
|
||||
- notes = @project.commit_notes(commit) + @project.commit_line_notes(commit)
|
||||
- if notes.any?
|
||||
%span.btn.small.disabled.grouped
|
||||
%i.icon-comment
|
||||
= notes.count
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
- if merge_request.notes.any?
|
||||
%span.btn.small.disabled.grouped
|
||||
%i.icon-comment
|
||||
= merge_request.notes.count
|
||||
= merge_request.mr_and_commit_notes.count
|
||||
%span.btn.small.disabled.grouped
|
||||
= merge_request.source_branch
|
||||
→
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue