Commit 77bde9a0e41e9229357983d258eaea9d7ef67017
1 parent
679d0d6d
Exists in
master
and in
4 other branches
Add notes count to commits in lists.
Showing
2 changed files
with
12 additions
and
0 deletions
Show diff stats
app/assets/stylesheets/sections/commits.scss
app/views/commits/_commit.html.haml
... | ... | @@ -13,3 +13,10 @@ |
13 | 13 | = time_ago_in_words(commit.committed_date) |
14 | 14 | ago |
15 | 15 | |
16 | + | |
17 | + %span.notes_count | |
18 | + - notes = @project.commit_notes(commit) + @project.commit_line_notes(commit) | |
19 | + - if notes.any? | |
20 | + %span.btn.small.disabled.grouped | |
21 | + %i.icon-comment | |
22 | + = notes.count | ... | ... |