Commit 67b670a8 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'axil-okr-advanced-settings-ui' into 'master'

Update advanced settings UI text

See merge request gitlab-org/gitlab!51442
parents 33686d04 6a8f5129
...@@ -22,10 +22,10 @@ export default { ...@@ -22,10 +22,10 @@ export default {
strings: { strings: {
alertTitle: __('You are about to permanently delete this project'), alertTitle: __('You are about to permanently delete this project'),
alertBody: __( alertBody: __(
'Once a project is permanently deleted it %{strongStart}cannot be recovered%{strongEnd}. Permanently deleting this project will %{strongStart}immediately delete%{strongEnd} its repositories and %{strongStart}all related resources%{strongEnd} including issues, merge requests etc.', 'Once a project is permanently deleted, it %{strongStart}cannot be recovered%{strongEnd}. Permanently deleting this project will %{strongStart}immediately delete%{strongEnd} its repositories and %{strongStart}all related resources%{strongEnd}, including issues, merge requests etc.',
), ),
modalBody: __( modalBody: __(
"This action cannot be undone. You will lose this project's repository and all content: issues, merge requests, etc.", "This action cannot be undone. You will lose this project's repository and all related resources, including issues, merge requests, etc.",
), ),
}, },
}; };
......
...@@ -4,9 +4,8 @@ ...@@ -4,9 +4,8 @@
.sub-section{ data: { qa_selector: 'export_project_content' } } .sub-section{ data: { qa_selector: 'export_project_content' } }
%h4= _('Export project') %h4= _('Export project')
%p= _('Export this project with all its related data in order to move your project to a new GitLab instance. Once the export is finished, you can import the file from the "New Project" page.') - link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/settings/import_export') }
%p= _('Export this project with all its related data in order to move it to a new GitLab instance. When the exported file is ready, you can download it from this page or from the download link in the email notification you will receive. You can then import it when creating a new project. %{link_start}Learn more.%{link_end}').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
.bs-callout.bs-callout-info
%p.gl-mb-0 %p.gl-mb-0
%p= _('The following items will be exported:') %p= _('The following items will be exported:')
%ul %ul
...@@ -19,7 +18,6 @@ ...@@ -19,7 +18,6 @@
%li= _('CI variables') %li= _('CI variables')
%li= _('Webhooks') %li= _('Webhooks')
%li= _('Any encrypted tokens') %li= _('Any encrypted tokens')
%p= _('Once the exported file is ready, you will receive a notification email with a download link, or you can download it from this page.')
- if project.export_status == :finished - if project.export_status == :finished
= link_to _('Download export'), download_export_project_path(project), = link_to _('Download export'), download_export_project_path(project),
rel: 'nofollow', download: '', method: :get, class: "btn btn-default", data: { qa_selector: 'download_export_link' } rel: 'nofollow', download: '', method: :get, class: "btn btn-default", data: { qa_selector: 'download_export_link' }
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
.sub-section .sub-section
%h4.danger-title= _('Delete project') %h4.danger-title= _('Delete project')
%p %p
%strong= _('Deleting the project will delete its repository and all related resources including issues, merge requests etc.') %strong= _('Deleting the project will delete its repository and all related resources including issues, merge requests, etc.')
= link_to _('Learn more.'), help_page_path('user/project/settings/index', anchor: 'removing-a-fork-relationship'), target: '_blank', rel: 'noopener noreferrer'
%p %p
%strong= _('Deleted projects cannot be restored!') %strong= _('Deleted projects cannot be restored!')
#js-project-delete-button{ data: { form_path: project_path(project), confirm_phrase: project.path } } #js-project-delete-button{ data: { form_path: project_path(project), confirm_phrase: project.path } }
...@@ -7,4 +7,5 @@ ...@@ -7,4 +7,5 @@
= form_for @project, url: remove_fork_project_path(@project), method: :delete, remote: true, html: { class: 'transfer-project' } do |f| = form_for @project, url: remove_fork_project_path(@project), method: :delete, remote: true, html: { class: 'transfer-project' } do |f|
%p %p
%strong= _('Once removed, the fork relationship cannot be restored. This project will no longer be able to receive or send merge requests to the source project or other forks.') %strong= _('Once removed, the fork relationship cannot be restored. This project will no longer be able to receive or send merge requests to the source project or other forks.')
= link_to _('Learn more.'), help_page_path('user/project/settings/index', anchor: 'removing-a-fork-relationship'), target: '_blank', rel: 'noopener noreferrer'
= button_to _('Remove fork relationship'), '#', class: "gl-button btn btn-danger js-confirm-danger", data: { "confirm-danger-message" => remove_fork_project_warning_message(@project) } = button_to _('Remove fork relationship'), '#', class: "gl-button btn btn-danger js-confirm-danger", data: { "confirm-danger-message" => remove_fork_project_warning_message(@project) }
...@@ -4,13 +4,14 @@ ...@@ -4,13 +4,14 @@
%h4.danger-title= _('Transfer project') %h4.danger-title= _('Transfer project')
= form_for @project, url: transfer_project_path(@project), method: :put, remote: true, html: { class: 'js-project-transfer-form' } do |f| = form_for @project, url: transfer_project_path(@project), method: :put, remote: true, html: { class: 'js-project-transfer-form' } do |f|
.form-group .form-group
= label_tag :new_namespace_id, nil, class: 'label-bold' do - link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/settings/index', anchor: 'transferring-an-existing-project-into-another-namespace') }
%span= _('Select a new namespace') %p= _("Transfer your project into another namespace. %{link_start}Learn more.%{link_end}").html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
.form-group
= select_tag :new_namespace_id, namespaces_options(nil), include_blank: true, class: 'select2'
%ul %ul
%li= _("Be careful. Changing the project's namespace can have unintended side effects.") %li= _("Be careful. Changing the project's namespace can have unintended side effects.")
%li= _('You can only transfer the project to namespaces you manage.') %li= _('You can only transfer the project to namespaces you manage.')
%li= _('You will need to update your local repositories to point to the new location.') %li= _('You will need to update your local repositories to point to the new location.')
%li= _('Project visibility level will be changed to match namespace rules when transferring to a group.') %li= _('Project visibility level will be changed to match namespace rules when transferring to a group.')
= label_tag :new_namespace_id, _('Select a new namespace'), class: 'gl-font-weight-bold'
.form-group
= select_tag :new_namespace_id, namespaces_options(nil), include_blank: true, class: 'select2'
= f.submit 'Transfer project', class: "gl-button btn btn-danger js-confirm-danger qa-transfer-button", data: { "confirm-danger-message" => transfer_project_message(@project) } = f.submit 'Transfer project', class: "gl-button btn btn-danger js-confirm-danger qa-transfer-button", data: { "confirm-danger-message" => transfer_project_message(@project) }
...@@ -68,7 +68,9 @@ ...@@ -68,7 +68,9 @@
.settings-content .settings-content
.sub-section .sub-section
%h4= _('Housekeeping') %h4= _('Housekeeping')
%p= _('Runs a number of housekeeping tasks within the current repository, such as compressing file revisions and removing unreachable objects.') %p
= _('Runs a number of housekeeping tasks within the current repository, such as compressing file revisions and removing unreachable objects.')
= link_to _('Learn more.'), help_page_path('administration/housekeeping'), target: '_blank', rel: 'noopener noreferrer'
= link_to _('Run housekeeping'), housekeeping_project_path(@project), = link_to _('Run housekeeping'), housekeeping_project_path(@project),
method: :post, class: "gl-button btn btn-default" method: :post, class: "gl-button btn btn-default"
...@@ -80,6 +82,13 @@ ...@@ -80,6 +82,13 @@
= render 'projects/errors' = render 'projects/errors'
= form_for @project do |f| = form_for @project do |f|
.form-group .form-group
- link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/settings/index', anchor: 'renaming-a-repository') }
%p= _("A project’s repository name defines its URL (the one you use to access the project via a browser) and its place on the file disk where GitLab is installed. %{link_start}Learn more.%{link_end}").html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
%ul
%li= _("Be careful. Renaming a project's repository can have unintended side effects.")
%li= _('You will need to update your local repositories to point to the new location.')
- if @project.deployment_platform.present?
%li= _('Your deployment services will be broken, you will need to manually fix the services after renaming.')
= f.label :path, _('Path'), class: 'label-bold' = f.label :path, _('Path'), class: 'label-bold'
.form-group .form-group
.input-group .input-group
...@@ -87,11 +96,6 @@ ...@@ -87,11 +96,6 @@
.input-group-text .input-group-text
#{Gitlab::Utils.append_path(root_url, @project.namespace.full_path)}/ #{Gitlab::Utils.append_path(root_url, @project.namespace.full_path)}/
= f.text_field :path, class: 'form-control qa-project-path-field h-auto' = f.text_field :path, class: 'form-control qa-project-path-field h-auto'
%ul
%li= _("Be careful. Renaming a project's repository can have unintended side effects.")
%li= _('You will need to update your local repositories to point to the new location.')
- if @project.deployment_platform.present?
%li= _('Your deployment services will be broken, you will need to manually fix the services after renaming.')
= f.submit _('Change path'), class: "gl-button btn btn-warning qa-change-path-button" = f.submit _('Change path'), class: "gl-button btn btn-warning qa-change-path-button"
= render 'transfer', project: @project = render 'transfer', project: @project
......
...@@ -7,12 +7,14 @@ ...@@ -7,12 +7,14 @@
- else - else
= _('Archive project') = _('Archive project')
- if @project.archived? - if @project.archived?
%p= _("Unarchiving the project will restore people's ability to make changes to it. The repository can be committed to, and issues, comments, and other entities can be created. %{strong_start}Once active, this project shows up in the search and on the dashboard.%{strong_end}").html_safe % { strong_start: '<strong>'.html_safe, strong_end: '</strong>'.html_safe } - link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/settings/index', anchor: 'unarchiving-a-project') }
%p= _("Unarchiving the project will restore its members' ability to make changes to it. The repository can be committed to, and issues, comments, and other entities can be created. %{strong_start}Once active, this project shows up in the search and on the dashboard.%{strong_end} %{link_start}Learn more.%{link_end}").html_safe % { strong_start: '<strong>'.html_safe, strong_end: '</strong>'.html_safe, link_start: link_start, link_end: '</a>'.html_safe }
= link_to _('Unarchive project'), unarchive_project_path(@project), = link_to _('Unarchive project'), unarchive_project_path(@project),
data: { confirm: _("Are you sure that you want to unarchive this project?"), qa_selector: 'unarchive_project_link' }, data: { confirm: _("Are you sure that you want to unarchive this project?"), qa_selector: 'unarchive_project_link' },
method: :post, class: "gl-button btn btn-success" method: :post, class: "gl-button btn btn-success"
- else - else
%p= _("Archiving the project will make it entirely read only. It is hidden from the dashboard and doesn't show up in searches. %{strong_start}The repository cannot be committed to, and no issues, comments, or other entities can be created.%{strong_end}").html_safe % { strong_start: '<strong>'.html_safe, strong_end: '</strong>'.html_safe } - link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/settings/index', anchor: 'archiving-a-project') }
%p= _("Archiving the project will make it entirely read only. It is hidden from the dashboard and doesn't show up in searches. %{strong_start}The repository cannot be committed to, and no issues, comments, or other entities can be created.%{strong_end} %{link_start}Learn more.%{link_end}").html_safe % { strong_start: '<strong>'.html_safe, strong_end: '</strong>'.html_safe, link_start: link_start, link_end: '</a>'.html_safe }
= link_to _('Archive project'), archive_project_path(@project), = link_to _('Archive project'), archive_project_path(@project),
data: { confirm: _("Are you sure that you want to archive this project?"), qa_selector: 'archive_project_link' }, data: { confirm: _("Are you sure that you want to archive this project?"), qa_selector: 'archive_project_link' },
method: :post, class: "gl-button btn btn-warning" method: :post, class: "gl-button btn btn-warning"
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
}, },
strings: { strings: {
modalBody: __( modalBody: __(
"Once a project is permanently deleted it cannot be recovered. You will lose this project's repository and all content: issues, merge requests etc.", "Once a project is permanently deleted, it cannot be recovered. You will lose this project's repository and all related resources, including issues, merge requests etc.",
), ),
helpLabel: __('Recovering projects'), helpLabel: __('Recovering projects'),
recoveryMessage: __('You can recover this project until %{date}'), recoveryMessage: __('You can recover this project until %{date}'),
......
...@@ -117,13 +117,13 @@ module EE ...@@ -117,13 +117,13 @@ module EE
end end
def permanent_delete_message(project) def permanent_delete_message(project)
message = _('This action will %{strongOpen}permanently delete%{strongClose} %{codeOpen}%{project}%{codeClose} %{strongOpen}immediately%{strongClose}, including its repositories and all content: issues, merge requests, etc.') message = _('This action will %{strongOpen}permanently delete%{strongClose} %{codeOpen}%{project}%{codeClose} %{strongOpen}immediately%{strongClose}, including its repositories and all related resources, including issues, merge requests, etc.')
html_escape(message) % remove_message_data(project) html_escape(message) % remove_message_data(project)
end end
def marked_for_removal_message(project) def marked_for_removal_message(project)
date = permanent_deletion_date(Time.now.utc) date = permanent_deletion_date(Time.now.utc)
message = _('This action will %{strongOpen}permanently delete%{strongClose} %{codeOpen}%{project}%{codeClose} %{strongOpen}on %{date}%{strongClose}, including its repositories and all content: issues, merge requests, etc.') message = _('This action will %{strongOpen}permanently delete%{strongClose} %{codeOpen}%{project}%{codeClose} %{strongOpen}on %{date}%{strongClose}, including its repositories and all related resources, including issues, merge requests, etc.')
html_escape(message) % remove_message_data(project).merge(date: date) html_escape(message) % remove_message_data(project).merge(date: date)
end end
......
---
title: Update project's advanced settings UI text
merge_request: 51442
author:
type: other
...@@ -43,7 +43,7 @@ exports[`Project remove modal initialized matches the snapshot 1`] = ` ...@@ -43,7 +43,7 @@ exports[`Project remove modal initialized matches the snapshot 1`] = `
<div> <div>
<p> <p>
Once a project is permanently deleted it cannot be recovered. You will lose this project's repository and all content: issues, merge requests etc. Once a project is permanently deleted, it cannot be recovered. You will lose this project's repository and all related resources, including issues, merge requests etc.
</p> </p>
<p <p
......
...@@ -1331,6 +1331,9 @@ msgstr "" ...@@ -1331,6 +1331,9 @@ msgstr ""
msgid "A project is where you house your files (repository), plan your work (issues), and publish your documentation (wiki), %{among_other_things_link}." msgid "A project is where you house your files (repository), plan your work (issues), and publish your documentation (wiki), %{among_other_things_link}."
msgstr "" msgstr ""
msgid "A project’s repository name defines its URL (the one you use to access the project via a browser) and its place on the file disk where GitLab is installed. %{link_start}Learn more.%{link_end}"
msgstr ""
msgid "A ready-to-go template for use with Android apps" msgid "A ready-to-go template for use with Android apps"
msgstr "" msgstr ""
...@@ -3722,7 +3725,7 @@ msgstr "" ...@@ -3722,7 +3725,7 @@ msgstr ""
msgid "Archived projects" msgid "Archived projects"
msgstr "" msgstr ""
msgid "Archiving the project will make it entirely read only. It is hidden from the dashboard and doesn't show up in searches. %{strong_start}The repository cannot be committed to, and no issues, comments, or other entities can be created.%{strong_end}" msgid "Archiving the project will make it entirely read only. It is hidden from the dashboard and doesn't show up in searches. %{strong_start}The repository cannot be committed to, and no issues, comments, or other entities can be created.%{strong_end} %{link_start}Learn more.%{link_end}"
msgstr "" msgstr ""
msgid "Are you ABSOLUTELY SURE you wish to delete this project?" msgid "Are you ABSOLUTELY SURE you wish to delete this project?"
...@@ -9403,7 +9406,7 @@ msgstr "" ...@@ -9403,7 +9406,7 @@ msgstr ""
msgid "Deleting a project places it into a read-only state until %{date}, at which point the project will be permanently deleted. Are you ABSOLUTELY sure?" msgid "Deleting a project places it into a read-only state until %{date}, at which point the project will be permanently deleted. Are you ABSOLUTELY sure?"
msgstr "" msgstr ""
msgid "Deleting the project will delete its repository and all related resources including issues, merge requests etc." msgid "Deleting the project will delete its repository and all related resources including issues, merge requests, etc."
msgstr "" msgstr ""
msgid "Deletion pending. This project will be removed on %{date}. Repository and other project resources are read-only." msgid "Deletion pending. This project will be removed on %{date}. Repository and other project resources are read-only."
...@@ -11880,7 +11883,7 @@ msgstr "" ...@@ -11880,7 +11883,7 @@ msgstr ""
msgid "Export this group with all related data to a new GitLab instance. Once complete, you can import the data file from the \"New Group\" page." msgid "Export this group with all related data to a new GitLab instance. Once complete, you can import the data file from the \"New Group\" page."
msgstr "" msgstr ""
msgid "Export this project with all its related data in order to move your project to a new GitLab instance. Once the export is finished, you can import the file from the \"New Project\" page." msgid "Export this project with all its related data in order to move it to a new GitLab instance. When the exported file is ready, you can download it from this page or from the download link in the email notification you will receive. You can then import it when creating a new project. %{link_start}Learn more.%{link_end}"
msgstr "" msgstr ""
msgid "Export variable to pipelines running on protected branches and tags only." msgid "Export variable to pipelines running on protected branches and tags only."
...@@ -20062,10 +20065,10 @@ msgstr "" ...@@ -20062,10 +20065,10 @@ msgstr ""
msgid "OnDemandScans|You cannot run an active scan against an unvalidated site." msgid "OnDemandScans|You cannot run an active scan against an unvalidated site."
msgstr "" msgstr ""
msgid "Once a project is permanently deleted it %{strongStart}cannot be recovered%{strongEnd}. Permanently deleting this project will %{strongStart}immediately delete%{strongEnd} its repositories and %{strongStart}all related resources%{strongEnd} including issues, merge requests etc." msgid "Once a project is permanently deleted, it %{strongStart}cannot be recovered%{strongEnd}. Permanently deleting this project will %{strongStart}immediately delete%{strongEnd} its repositories and %{strongStart}all related resources%{strongEnd}, including issues, merge requests etc."
msgstr "" msgstr ""
msgid "Once a project is permanently deleted it cannot be recovered. You will lose this project's repository and all content: issues, merge requests etc." msgid "Once a project is permanently deleted, it cannot be recovered. You will lose this project's repository and all related resources, including issues, merge requests etc."
msgstr "" msgstr ""
msgid "Once imported, repositories can be mirrored over SSH. Read more %{link_start}here%{link_end}." msgid "Once imported, repositories can be mirrored over SSH. Read more %{link_start}here%{link_end}."
...@@ -28978,16 +28981,16 @@ msgstr "" ...@@ -28978,16 +28981,16 @@ msgstr ""
msgid "This action cannot be undone, and will permanently delete the %{key} SSH key" msgid "This action cannot be undone, and will permanently delete the %{key} SSH key"
msgstr "" msgstr ""
msgid "This action cannot be undone. You will lose this project's repository and all content: issues, merge requests, etc." msgid "This action cannot be undone. You will lose this project's repository and all related resources, including issues, merge requests, etc."
msgstr "" msgstr ""
msgid "This action has been performed too many times. Try again later." msgid "This action has been performed too many times. Try again later."
msgstr "" msgstr ""
msgid "This action will %{strongOpen}permanently delete%{strongClose} %{codeOpen}%{project}%{codeClose} %{strongOpen}immediately%{strongClose}, including its repositories and all content: issues, merge requests, etc." msgid "This action will %{strongOpen}permanently delete%{strongClose} %{codeOpen}%{project}%{codeClose} %{strongOpen}immediately%{strongClose}, including its repositories and all related resources, including issues, merge requests, etc."
msgstr "" msgstr ""
msgid "This action will %{strongOpen}permanently delete%{strongClose} %{codeOpen}%{project}%{codeClose} %{strongOpen}on %{date}%{strongClose}, including its repositories and all content: issues, merge requests, etc." msgid "This action will %{strongOpen}permanently delete%{strongClose} %{codeOpen}%{project}%{codeClose} %{strongOpen}on %{date}%{strongClose}, including its repositories and all related resources, including issues, merge requests, etc."
msgstr "" msgstr ""
msgid "This also resolves all related threads" msgid "This also resolves all related threads"
...@@ -30122,6 +30125,9 @@ msgstr "" ...@@ -30122,6 +30125,9 @@ msgstr ""
msgid "Transfer project" msgid "Transfer project"
msgstr "" msgstr ""
msgid "Transfer your project into another namespace. %{link_start}Learn more.%{link_end}"
msgstr ""
msgid "TransferGroup|Cannot transfer group to one of its subgroup." msgid "TransferGroup|Cannot transfer group to one of its subgroup."
msgstr "" msgstr ""
...@@ -30499,7 +30505,7 @@ msgstr "" ...@@ -30499,7 +30505,7 @@ msgstr ""
msgid "Unarchive project" msgid "Unarchive project"
msgstr "" msgstr ""
msgid "Unarchiving the project will restore people's ability to make changes to it. The repository can be committed to, and issues, comments, and other entities can be created. %{strong_start}Once active, this project shows up in the search and on the dashboard.%{strong_end}" msgid "Unarchiving the project will restore its members' ability to make changes to it. The repository can be committed to, and issues, comments, and other entities can be created. %{strong_start}Once active, this project shows up in the search and on the dashboard.%{strong_end} %{link_start}Learn more.%{link_end}"
msgstr "" msgstr ""
msgid "Unassign from commenting user" msgid "Unassign from commenting user"
......
...@@ -53,12 +53,12 @@ exports[`Project remove modal initialized matches the snapshot 1`] = ` ...@@ -53,12 +53,12 @@ exports[`Project remove modal initialized matches the snapshot 1`] = `
variant="danger" variant="danger"
> >
<gl-sprintf-stub <gl-sprintf-stub
message="Once a project is permanently deleted it %{strongStart}cannot be recovered%{strongEnd}. Permanently deleting this project will %{strongStart}immediately delete%{strongEnd} its repositories and %{strongStart}all related resources%{strongEnd} including issues, merge requests etc." message="Once a project is permanently deleted, it %{strongStart}cannot be recovered%{strongEnd}. Permanently deleting this project will %{strongStart}immediately delete%{strongEnd} its repositories and %{strongStart}all related resources%{strongEnd}, including issues, merge requests etc."
/> />
</gl-alert-stub> </gl-alert-stub>
<p> <p>
This action cannot be undone. You will lose this project's repository and all content: issues, merge requests, etc. This action cannot be undone. You will lose this project's repository and all related resources, including issues, merge requests, etc.
</p> </p>
<p <p
......
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