Commit 5d8c3342 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'issues/1608-text' into 'master'

change the date label to match the date used

Closes #1608

See merge request !7860
parents 024ca242 48895aa4
......@@ -31,7 +31,7 @@
 
.light
= commit_author_link(commit, avatar: false)
authored
committed
#{time_ago_with_tooltip(commit.committed_date)}
%td.line-numbers
- line_count = blame_group[:lines].count
......
......@@ -37,5 +37,5 @@
= preserve(markdown(commit.description, pipeline: :single_line, author: commit.author))
= commit_author_link(commit, avatar: false, size: 24)
authored
committed
#{time_ago_with_tooltip(commit.committed_date)}
---
title: change text around timestamps to make it clear which timestamp is displayed
merge_request: 7860
author: BM5k
......@@ -177,4 +177,23 @@ describe 'Commits' do
end
end
end
context 'viewing commits for a branch' do
let(:branch_name) { 'master' }
let(:user) { create(:user) }
before do
project.team << [user, :master]
login_with(user)
visit namespace_project_commits_path(project.namespace, project, branch_name)
end
it 'includes the committed_date for each commit' do
commits = project.repository.commits(branch_name)
commits.each do |commit|
expect(page).to have_content("committed #{commit.committed_date}")
end
end
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