Add notes count to commits in lists.
This commit is contained in:
parent
679d0d6d76
commit
77bde9a0e4
2 changed files with 12 additions and 0 deletions
|
@ -203,6 +203,11 @@
|
||||||
@extend .cgray;
|
@extend .cgray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.notes_count {
|
||||||
|
float:right;
|
||||||
|
margin: -6px 8px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background:#FCEEC1;
|
background:#FCEEC1;
|
||||||
color:$style_color;
|
color:$style_color;
|
||||||
|
|
|
@ -13,3 +13,10 @@
|
||||||
= time_ago_in_words(commit.committed_date)
|
= time_ago_in_words(commit.committed_date)
|
||||||
ago
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue