Revert "Annotate" to "Blame"

This commit is contained in:
Stan Hu 2017-06-22 17:07:19 -07:00
parent 5cd1a48d5e
commit 516a3b7880
7 changed files with 5 additions and 10 deletions

View File

@ -123,7 +123,7 @@
}
/**
* Annotate file
* Blame file
*/
&.blame {
table {

View File

@ -1,6 +1,6 @@
- @no_container = true
- project_duration = age_map_duration(@blame_groups, @project)
- page_title "Annotate", @blob.path, @ref
- page_title "Blame", @blob.path, @ref
= render "projects/commits/head"
%div{ class: container_class }

View File

@ -27,7 +27,7 @@
= link_to 'Normal view', namespace_project_blob_path(@project.namespace, @project, @id),
class: 'btn'
- else
= link_to 'Annotate', namespace_project_blame_path(@project.namespace, @project, @id),
= link_to 'Blame', namespace_project_blame_path(@project.namespace, @project, @id),
class: 'btn js-blob-blame-link' unless blob.empty?
= link_to 'History', namespace_project_commits_path(@project.namespace, @project, @id),

View File

@ -1,4 +0,0 @@
---
title: Changed Blame to Annotate in the UI to promote blameless culture
merge_request: 10378
author: Ilya Vassilevsky

View File

@ -369,7 +369,6 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
expect(page).to have_content 'Permalink'
expect(page).not_to have_content 'Edit'
expect(page).not_to have_content 'Blame'
expect(page).not_to have_content 'Annotate'
expect(page).to have_content 'Delete'
expect(page).to have_content 'Replace'
end

View File

@ -55,7 +55,7 @@ feature 'Blob button line permalinks (BlobLinePermalinkUpdater)', feature: true,
end
end
describe 'Click "Annotate" button' do
describe 'Click "Blame" button' do
it 'works with no initial line number fragment hash' do
visit_blob

View File

@ -12,7 +12,7 @@ feature 'user browses project', feature: true, js: true do
scenario "can see blame of '.gitignore'" do
click_link ".gitignore"
click_link 'Annotate'
click_link 'Blame'
expect(page).to have_content "*.rb"
expect(page).to have_content "Dmitriy Zaporozhets"