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

30 lines
1.7 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
- return unless Gitlab::CurrentSettings.project_export_enabled?
- project = local_assigns.fetch(:project)
2021-03-08 18:12:59 +05:30
.sub-section{ data: { qa_selector: 'export_project_content' } }
2019-07-31 22:56:46 +05:30
%h4= _('Export project')
2021-03-11 19:13:27 +05:30
- 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 }
%p.gl-mb-0
%p= _('The following items will be exported:')
%ul
- project_export_descriptions.each do |desc|
%li= desc
%p= _('The following items will NOT be exported:')
%ul
%li= _('Job logs and artifacts')
%li= _('Container registry images')
%li= _('CI variables')
2021-09-30 23:02:18 +05:30
%li= _('Pipeline triggers')
2021-03-11 19:13:27 +05:30
%li= _('Webhooks')
%li= _('Any encrypted tokens')
2019-07-31 22:56:46 +05:30
- if project.export_status == :finished
= link_to _('Download export'), download_export_project_path(project),
2021-03-11 19:13:27 +05:30
rel: 'nofollow', download: '', method: :get, class: "btn gl-button btn-default", data: { qa_selector: 'download_export_link' }
2019-07-31 22:56:46 +05:30
= link_to _('Generate new export'), generate_new_export_project_path(project),
2021-03-11 19:13:27 +05:30
method: :post, class: "btn gl-button btn-default"
2019-07-31 22:56:46 +05:30
- else
2021-01-03 14:25:43 +05:30
= link_to _('Export project'), export_project_path(project),
2021-03-11 19:13:27 +05:30
method: :post, class: "btn gl-button btn-default", data: { qa_selector: 'export_project_link' }