change wording
This commit is contained in:
parent
15469fe0a1
commit
a6c15c5b97
4 changed files with 5 additions and 5 deletions
|
@ -72,7 +72,7 @@
|
|||
- else
|
||||
%button{ class: "btn btn-remove remove-row js-ajax-loading-spinner has-tooltip disabled",
|
||||
disabled: true,
|
||||
title: s_('Branches|Only a project master or owner can delete a protected branch') }
|
||||
title: s_('Branches|Only a project maintainer or owner can delete a protected branch') }
|
||||
= icon("trash-o")
|
||||
- else
|
||||
= link_to project_branch_path(@project, branch.name),
|
||||
|
|
|
@ -5,7 +5,7 @@ module Gitlab
|
|||
push_code: 'You are not allowed to push code to this project.',
|
||||
delete_default_branch: 'The default branch of a project cannot be deleted.',
|
||||
force_push_protected_branch: 'You are not allowed to force push code to a protected branch on this project.',
|
||||
non_master_delete_protected_branch: 'You are not allowed to delete protected branches from this project. Only a project master or owner can delete a protected branch.',
|
||||
non_master_delete_protected_branch: 'You are not allowed to delete protected branches from this project. Only a project maintainer or owner can delete a protected branch.',
|
||||
non_web_delete_protected_branch: 'You can only delete protected branches using the web interface.',
|
||||
merge_protected_branch: 'You are not allowed to merge code into protected branches on this project.',
|
||||
push_protected_branch: 'You are not allowed to push code to protected branches on this project.',
|
||||
|
|
|
@ -696,7 +696,7 @@ msgstr ""
|
|||
msgid "Branches|Once you confirm and press %{delete_protected_branch}, it cannot be undone or recovered."
|
||||
msgstr ""
|
||||
|
||||
msgid "Branches|Only a project master or owner can delete a protected branch"
|
||||
msgid "Branches|Only a project maintainer or owner can delete a protected branch"
|
||||
msgstr ""
|
||||
|
||||
msgid "Branches|Overview"
|
||||
|
|
|
@ -52,7 +52,7 @@ describe Gitlab::Checks::ChangeAccess do
|
|||
context 'with protected tag' do
|
||||
let!(:protected_tag) { create(:protected_tag, project: project, name: 'v*') }
|
||||
|
||||
context 'as master' do
|
||||
context 'as maintainer' do
|
||||
before do
|
||||
project.add_master(user)
|
||||
end
|
||||
|
@ -138,7 +138,7 @@ describe Gitlab::Checks::ChangeAccess do
|
|||
|
||||
context 'if the user is not allowed to delete protected branches' do
|
||||
it 'raises an error' do
|
||||
expect { subject.exec }.to raise_error(Gitlab::GitAccess::UnauthorizedError, 'You are not allowed to delete protected branches from this project. Only a project master or owner can delete a protected branch.')
|
||||
expect { subject.exec }.to raise_error(Gitlab::GitAccess::UnauthorizedError, 'You are not allowed to delete protected branches from this project. Only a project maintainer or owner can delete a protected branch.')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue