Commit c74e556d authored by Sean McGivern's avatar Sean McGivern

Merge branch '25317-prioritize-author-date-over-commit' into 'master'

Use author info on commits list page rather than most recent commit date

Closes #25317

See merge request gitlab-org/gitlab-ce!15868
parents 5478fe42 c2dc6965
......@@ -38,8 +38,8 @@
.commiter
- commit_author_link = commit_author_link(commit, avatar: false, size: 24)
- commit_timeago = time_ago_with_tooltip(commit.committed_date, placement: 'bottom')
- commit_text = _('%{commit_author_link} committed %{commit_timeago}') % { commit_author_link: commit_author_link, commit_timeago: commit_timeago }
- commit_timeago = time_ago_with_tooltip(commit.authored_date, placement: 'bottom')
- commit_text = _('%{commit_author_link} authored %{commit_timeago}') % { commit_author_link: commit_author_link, commit_timeago: commit_timeago }
#{ commit_text.html_safe }
.commit-actions.flex-row.hidden-xs
......
---
title: Show authored date rather than committed date on the commit list
merge_request:
author:
type: fixed
......@@ -197,7 +197,7 @@ describe 'Commits' do
commits = project.repository.commits(branch_name)
commits.each do |commit|
expect(page).to have_content("committed #{commit.committed_date.strftime("%b %d, %Y")}")
expect(page).to have_content("authored #{commit.authored_date.strftime("%b %d, %Y")}")
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment