debian-mirror-gitlab/app/views/projects/_transfer.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
1.9 KiB
Text
Raw Normal View History

2021-01-29 00:20:46 +05:30
- return unless can?(current_user, :change_namespace, @project)
2022-01-26 12:08:38 +05:30
- form_id = "transfer-project-form"
- hidden_input_id = "new_namespace_id"
2022-08-27 11:52:29 +05:30
- initial_data = { button_text: s_('ProjectSettings|Transfer project'), confirm_danger_message: transfer_project_message(@project), phrase: @project.name, target_form_id: form_id, target_hidden_input_id: hidden_input_id }
2021-01-29 00:20:46 +05:30
.sub-section
%h4.danger-title= _('Transfer project')
2022-01-26 12:08:38 +05:30
= form_for @project, url: transfer_project_path(@project), method: :put, html: { class: 'js-project-transfer-form', id: form_id } do |f|
2021-01-29 00:20:46 +05:30
.form-group
2022-08-13 15:12:31 +05:30
- link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/settings/index', anchor: 'transfer-a-project-to-another-namespace') }
2021-03-11 19:13:27 +05:30
%p= _("Transfer your project into another namespace. %{link_start}Learn more.%{link_end}").html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
2022-06-21 17:19:12 +05:30
%p= _('When you transfer your project to a group, you can easily manage multiple projects, view usage quotas for storage, pipeline minutes, and users, and start a trial or upgrade to a paid tier.')
%p
= _("Don't have a group?")
= link_to _('Create one'), new_group_path, target: '_blank'
= _('Things to be aware of before transferring:')
2021-01-29 00:20:46 +05:30
%ul
%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 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.')
2022-01-26 12:08:38 +05:30
= hidden_field_tag(hidden_input_id)
2021-03-11 19:13:27 +05:30
= label_tag :new_namespace_id, _('Select a new namespace'), class: 'gl-font-weight-bold'
2022-01-26 12:08:38 +05:30
.js-transfer-project-form{ data: initial_data }