Commit 012d1008 authored by Evan Read's avatar Evan Read

Fix contextual help link and other minor improvements

Changelog: other
EE: true
parent dc00d719
......@@ -29,7 +29,7 @@ export default {
},
i18n: {
groupSettingsHeader: __('Merge request approvals'),
groupSettingsDescription: __('Define approval settings. %{linkStart}Learn more.%{linkEnd}'),
groupSettingsDescription: __('Define approval rules. %{linkStart}Learn more.%{linkEnd}'),
},
labels: GROUP_APPROVAL_SETTINGS_LABELS_I18N,
};
......
......@@ -64,7 +64,7 @@ export default {
'SecurityApprovals|Test coverage must be enabled. %{linkStart}Learn more%{linkEnd}.',
),
enableDescription: s__(
'SecurityApprovals|Requires approval for decreases in test coverage. %{linkStart}More information%{linkEnd}',
'SecurityApprovals|Requires approval for decreases in test coverage. %{linkStart}Learn more.%{linkEnd}',
),
docsPath: this.coverageCheckHelpPagePath,
},
......
......@@ -52,9 +52,7 @@ export const APPROVALS_HELP_PATH = 'user/project/merge_requests/approvals/settin
export const APPROVAL_SETTINGS_I18N = {
learnMore: __('Learn more.'),
approvalSettingsHeader: __('Approval settings'),
approvalSettingsDescription: __(
'Define how approval rules are applied as a merge request moves toward completion.',
),
approvalSettingsDescription: __('Define how approval rules are applied to merge requests.'),
saveChanges: __('Save changes'),
loadingErrorMessage: s__(
'ApprovalSettings|There was an error loading merge request approval settings.',
......
......@@ -2,11 +2,11 @@
%section.settings.merge-request-approval-settings.no-animate{ class: ('expanded' if expanded_by_default?) }
.settings-header
%h4
= _('Merge request (MR) approvals')
= _('Merge request approvals')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
= _('Regulate approvals by authors/committers. Affects all projects.')
= _('Configure approvals by authors and committers on all projects.')
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'merge-request-approval-settings'), html: { class: 'fieldset-form' } do |f|
= form_errors(@application_setting)
......
......@@ -2,8 +2,8 @@
%legend.h5.gl-border-none
= _('Approval settings')
%p
= _("Define how approval rules are applied as a merge request moves toward completion.")
= link_to _("Learn more."), help_page_path("user/project/merge_requests/approvals/settings.md"), target: '_blank'
= _("Define how approval rules are applied to merge requests.")
= link_to _("Learn more."), help_page_path("user/admin_area/merge_requests_approvals.md"), target: '_blank', rel: 'noopener noreferrer'
.gl-form-checkbox-group
.gl-form-checkbox.custom-control.custom-checkbox
= f.check_box :prevent_merge_requests_author_approval, class: 'custom-control-input'
......
......@@ -3,11 +3,11 @@
%section.settings.merge-requests-feature.no-animate#js-merge-request-approval-settings{ class: [('expanded' if expanded)], data: { qa_selector: 'merge_request_approvals_settings_content' } }
.settings-header
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only= _('Merge request (MR) approvals')
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only= _('Merge request approvals')
%button.gl-button.btn.btn-default.js-settings-toggle{ type: 'button' }= expanded ? _("Collapse") : _("Expand")
%p
= _("Define approval settings.")
= link_to _("Learn more."), help_page_path("user/project/merge_requests/approvals/index.md"), target: '_blank'
= _("Define approval rules.")
= link_to _("Learn more."), help_page_path("user/project/merge_requests/approvals/index.md"), target: '_blank', rel: 'noopener noreferrer'
.settings-content
= render 'projects/merge_request_approvals_settings_form'
......@@ -160,7 +160,7 @@ describe('ApprovalSettings', () => {
expect(findForm().text()).toContain('Approval settings');
expect(findForm().text()).toContain(
'Define how approval rules are applied as a merge request moves toward completion.',
'Define how approval rules are applied to merge requests.',
);
});
......
......@@ -14,7 +14,7 @@ RSpec.describe 'admin/push_rules/_merge_request_approvals' do
it 'shows settings form', :aggregate_failures do
render
expect(rendered).to have_content(_('Merge request (MR) approvals'))
expect(rendered).to have_content(_('Regulate approvals by authors/committers. Affects all projects.'))
expect(rendered).to have_content(_('Merge request approvals'))
expect(rendered).to have_content(_('Configure approvals by authors and committers on all projects.'))
end
end
......@@ -8482,6 +8482,9 @@ msgstr ""
msgid "Configure a %{codeStart}.gitlab-webide.yml%{codeEnd} file in the %{codeStart}.gitlab%{codeEnd} directory to start using the Web Terminal. %{helpStart}Learn more.%{helpEnd}"
msgstr ""
msgid "Configure approvals by authors and committers on all projects."
msgstr ""
msgid "Configure existing installation"
msgstr ""
......@@ -10714,10 +10717,10 @@ msgstr ""
msgid "Define a custom pattern with cron syntax"
msgstr ""
msgid "Define approval settings."
msgid "Define approval rules."
msgstr ""
msgid "Define approval settings. %{linkStart}Learn more.%{linkEnd}"
msgid "Define approval rules. %{linkStart}Learn more.%{linkEnd}"
msgstr ""
msgid "Define custom rules for what constitutes spam, independent of Akismet"
......@@ -10726,7 +10729,7 @@ msgstr ""
msgid "Define environments in the deploy stage(s) in %{code_open}.gitlab-ci.yml%{code_close} to track deployments here."
msgstr ""
msgid "Define how approval rules are applied as a merge request moves toward completion."
msgid "Define how approval rules are applied to merge requests."
msgstr ""
msgid "Definition"
......@@ -21021,9 +21024,6 @@ msgstr ""
msgid "Merge request %{mr_link} was reviewed by %{mr_author}"
msgstr ""
msgid "Merge request (MR) approvals"
msgstr ""
msgid "Merge request analytics"
msgstr ""
......@@ -27680,9 +27680,6 @@ msgstr ""
msgid "Registry setup"
msgstr ""
msgid "Regulate approvals by authors/committers. Affects all projects."
msgstr ""
msgid "Reindexing Status: %{status} (Slice multiplier: %{multiplier}, Maximum running slices: %{max_slices})"
msgstr ""
......@@ -29556,7 +29553,7 @@ msgstr ""
msgid "SecurityApprovals|Requires approval for Denied licenses. %{linkStart}More information%{linkEnd}"
msgstr ""
msgid "SecurityApprovals|Requires approval for decreases in test coverage. %{linkStart}More information%{linkEnd}"
msgid "SecurityApprovals|Requires approval for decreases in test coverage. %{linkStart}Learn more.%{linkEnd}"
msgstr ""
msgid "SecurityApprovals|Requires approval for vulnerabilities. %{linkStart}Learn more.%{linkEnd}"
......
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