summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-04 23:02:37 +0200
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-10 01:31:36 +0200
commit77bde9a0e41e9229357983d258eaea9d7ef67017 (patch)
tree8585765e213675549a8aa6d7b657006da0c2e514
parent679d0d6d760b850e27c13f3ce0f812b8b081df7f (diff)
downloadgitlab-ce-77bde9a0e41e9229357983d258eaea9d7ef67017.tar.gz
Add notes count to commits in lists.
-rw-r--r--app/assets/stylesheets/sections/commits.scss5
-rw-r--r--app/views/commits/_commit.html.haml7
2 files changed, 12 insertions, 0 deletions
diff --git a/app/assets/stylesheets/sections/commits.scss b/app/assets/stylesheets/sections/commits.scss
index 711f603f75c..1da812750c3 100644
--- a/app/assets/stylesheets/sections/commits.scss
+++ b/app/assets/stylesheets/sections/commits.scss
@@ -203,6 +203,11 @@
@extend .cgray;
}
+ .notes_count {
+ float:right;
+ margin: -6px 8px 6px;
+ }
+
code {
background:#FCEEC1;
color:$style_color;
diff --git a/app/views/commits/_commit.html.haml b/app/views/commits/_commit.html.haml
index 259e8e26260..9abadc5d807 100644
--- a/app/views/commits/_commit.html.haml
+++ b/app/views/commits/_commit.html.haml
@@ -13,3 +13,10 @@
= time_ago_in_words(commit.committed_date)
ago
&nbsp;
+
+ %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