Read about our upcoming Code of Conduct on this issue

_export.html.haml 1.79 KB
Newer Older
1
- return unless Gitlab::CurrentSettings.project_export_enabled?
2
3
4
5

- project = local_assigns.fetch(:project)
- expanded = Rails.env.test?

6
%section.settings.no-animate#js-export-project{ class: ('expanded' if expanded) }
7
8
9
  .settings-header
    %h4
      Export project
10
    %button.btn.js-settings-toggle{ type: 'button' }
11
12
13
      = expanded ? 'Collapse' : 'Expand'
    %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.
14
  .settings-content
15
16
17
18
19
20
21
22
23
    .bs-callout.bs-callout-info
      %p.append-bottom-0
        %p
          The following items will be exported:
        %ul
          %li Project and wiki repositories
          %li Project uploads
          %li Project configuration including web hooks and services
          %li Issues with comments, merge requests with diffs and comments, labels, milestones, snippets, and other project entities
24
          %li LFS objects
25
26
27
28
29
30
31
32
        %p
          The following items will NOT be exported:
        %ul
          %li Job traces and artifacts
          %li Container registry images
          %li CI variables
          %li Any encrypted tokens
    %p
33
      Once the exported file is ready, you will receive a notification email with a download link, or you can download it from this page.
34
    - if project.export_status == :finished
35
36
37
38
39
40
41
      = link_to 'Download export',  download_export_project_path(project),
              rel: 'nofollow', download: '', method: :get, class: "btn btn-default"
      = link_to 'Generate new export',  generate_new_export_project_path(project),
              method: :post, class: "btn btn-default"
    - else
      = link_to 'Export project', export_project_path(project),
              method: :post, class: "btn btn-default"