debian-mirror-gitlab/app/views/groups/settings/_transfer.html.haml

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

20 lines
1.9 KiB
Text
Raw Normal View History

2022-04-04 11:22:00 +05:30
- form_id = "transfer-group-form"
- initial_data = { button_text: s_('GroupSettings|Transfer group'), group_name: @group.name, target_form_id: form_id, parent_groups: parent_group_options(group), is_paid_group: group.paid?.to_s }
2021-09-30 23:02:18 +05:30
.sub-section
%h4.warning-title= s_('GroupSettings|Transfer group')
2022-01-26 12:08:38 +05:30
%p= _('Transfer group to another parent group.')
2022-04-04 11:22:00 +05:30
= form_for group, url: transfer_group_path(group), method: :put, html: { id: form_id, class: 'js-group-transfer-form' } do |f|
2021-09-30 23:02:18 +05:30
%ul
2022-01-26 12:08:38 +05:30
- learn_more_link_start = '<a href="https://docs.gitlab.com/ee/user/project/index.html#redirects-when-changing-repository-paths" target="_blank" rel="noopener noreferrer">'.html_safe
- warning_text = s_("GroupSettings|Be careful. Changing a group's parent can have unintended side effects. %{learn_more_link_start}Learn more.%{learn_more_link_end}") % { learn_more_link_start: learn_more_link_start, learn_more_link_end: '</a>'.html_safe }
2021-09-30 23:02:18 +05:30
%li= warning_text.html_safe
%li= s_('GroupSettings|You can only transfer the group to a group you manage.')
%li= s_('GroupSettings|You will need to update your local repositories to point to the new location.')
2022-04-04 11:22:00 +05:30
%li= s_("GroupSettings|If the parent group's visibility is lower than the group's current visibility, visibility levels for subgroups and projects will be changed to match the new parent group's visibility.")
2021-09-30 23:02:18 +05:30
- if group.paid?
2022-07-23 23:45:48 +05:30
= render Pajamas::AlertComponent.new(dismissible: false, alert_options: { class: 'gl-mb-5' }) do |c|
2022-07-16 23:28:13 +05:30
= c.body do
2022-05-07 20:08:51 +05:30
= html_escape(_("This group can't be transferred because it is linked to a subscription. To transfer this group, %{linkStart}link the subscription%{linkEnd} with a different group.")) % { linkStart: "<a href=\"#{help_page_path('subscriptions/index', anchor: 'change-the-linked-namespace')}\">".html_safe, linkEnd: '</a>'.html_safe }
2022-04-04 11:22:00 +05:30
.js-transfer-group-form{ data: initial_data }