summaryrefslogtreecommitdiff
path: root/app/views/groups/settings/_export.html.haml
blob: 62bc574231f209ccc6014fe33d44ade203803168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- group = local_assigns.fetch(:group)

.sub-section
  %h4= s_('GroupSettings|Export group')
  %p= _('Export this group with all related data.')
  = render Pajamas::AlertComponent.new(variant: :warning, dismissible: false, alert_class: 'gl-mb-4') do
    .gl-alert-body
      - docs_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/group/import/index.md') }
      - docs_link_end = '</a>'.html_safe
      = s_('GroupsNew|This feature is deprecated and replaced by %{docs_link_start}group migration%{docs_link_end}.').html_safe % { docs_link_start: docs_link_start, docs_link_end: docs_link_end }
  %p
    - export_information = _('After the export is complete, download the data file from a notification email or from this page. You can then import the data file from the %{strong_text_start}Create new group%{strong_text_end} page of another GitLab instance.') % { strong_text_start: '<strong>'.html_safe, strong_text_end: '</strong>'.html_safe}
    = export_information.html_safe
    = link_to _('Learn more.'), help_page_path('user/group/settings/import_export.md'), target: '_blank', rel: 'noopener noreferrer'
  = render Pajamas::AlertComponent.new(dismissible: false, alert_class: 'gl-mb-5') do
    .gl-alert-body
      %p.gl-mb-0
        %p= _('The following items will be exported:')
        %ul
          - group_export_descriptions.each do |description|
            %li= description
        %p= _('The following items will NOT be exported:')
        %ul
          %li= _('Projects')
          %li= _('Runner tokens')
          %li= _('SAML discovery tokens')
  - if group.export_file_exists?
    = link_to _('Download export'), download_export_group_path(group),
        rel: 'nofollow', method: :get, class: 'btn gl-button btn-default', data: { qa_selector: 'download_export_link' }
    = link_to _('Regenerate export'), export_group_path(group),
        method: :post, class: 'btn gl-button btn-default', data: { qa_selector: 'regenerate_export_group_link' }
  - else
    = link_to _('Export group'), export_group_path(group),
        method: :post, class: 'btn gl-button btn-default', data: { qa_selector: 'export_group_link' }