summaryrefslogtreecommitdiff
path: root/app/views/projects/commits
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-17 14:54:54 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-17 14:54:54 -0800
commitef0b15c55268fbf7ac8ee0bd0b5b8bc0fe265ac4 (patch)
tree3863877052f9b7db7f5cb18fc2394b98c95c4abf /app/views/projects/commits
parentada6c6080b2fa0d63003f8b29b5c32195254906d (diff)
downloadgitlab-ce-ef0b15c55268fbf7ac8ee0bd0b5b8bc0fe265ac4.tar.gz
Fix commits pagination
Diffstat (limited to 'app/views/projects/commits')
-rw-r--r--app/views/projects/commits/_commits.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/projects/commits/_commits.html.haml b/app/views/projects/commits/_commits.html.haml
index f279e3c37cd..2d0ca671fa0 100644
--- a/app/views/projects/commits/_commits.html.haml
+++ b/app/views/projects/commits/_commits.html.haml
@@ -1,3 +1,6 @@
+- unless defined?(project)
+ - project = @project
+
- @commits.group_by { |c| c.committed_date.to_date }.sort.reverse.each do |day, commits|
.row.commits-row
.col-md-2