diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-06-03 12:40:20 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-06-03 12:40:20 +1100 |
commit | 78f131c0514bc99f73b9c063fac3158ab2e51e17 (patch) | |
tree | 1f9cc2feccd343ce1b83bb5d7a82bab7fea7e6e1 /app/views | |
parent | 70b927a55ca62f1219464182660877bcdefd55b0 (diff) | |
download | gitlab-ce-78f131c0514bc99f73b9c063fac3158ab2e51e17.tar.gz |
Fix duplication of commits header on commits page
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/commits/_commits.html.haml | 7 |
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 |