Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-06-03 04:40:20 +0300
committerblackst0ne <blackst0ne.ru@gmail.com>2017-06-03 04:40:20 +0300
commit78f131c0514bc99f73b9c063fac3158ab2e51e17 (patch)
tree1f9cc2feccd343ce1b83bb5d7a82bab7fea7e6e1 /app/views
parent70b927a55ca62f1219464182660877bcdefd55b0 (diff)
Fix duplication of commits header on commits page
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/commits/_commits.html.haml7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/projects/commits/_commits.html.haml b/app/views/projects/commits/_commits.html.haml
index 88c7d7bc44b..d3380c917e4 100644
--- a/app/views/projects/commits/_commits.html.haml
+++ b/app/views/projects/commits/_commits.html.haml
@@ -2,8 +2,11 @@
- commits, hidden = limited_commits(@commits)
- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits|
- %li.commit-header #{day.strftime('%d %b, %Y')} #{pluralize(commits.count, 'commit')}
- %li.commits-row
+ %li.commit-header.js-commit-header{ data: { day: day } }
+ %span.day= day.strftime('%d %b, %Y')
+ %span.commits-count= pluralize(commits.count, 'commit')
+
+ %li.commits-row{ data: { day: day } }
%ul.content-list.commit-list
= render commits, project: project, ref: ref