2022-08-27 11:52:29 +05:30
|
|
|
- page_title _('Import repository')
|
2022-07-23 23:45:48 +05:30
|
|
|
%h1.page-title.gl-font-size-h-display
|
2021-11-11 11:23:49 +05:30
|
|
|
= _('Import repository')
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
%hr
|
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
- if @project.import_failed?
|
2022-08-27 11:52:29 +05:30
|
|
|
= render Pajamas::AlertComponent.new(title: s_('Import|The repository could not be imported.'),
|
|
|
|
dismissible: false,
|
|
|
|
variant: :danger,
|
|
|
|
alert_options: { class: 'gl-mb-5' }) do |c|
|
2023-07-09 08:55:56 +05:30
|
|
|
- c.with_body do
|
2022-08-27 11:52:29 +05:30
|
|
|
= @project.import_state.last_error
|
2015-11-26 14:37:03 +05:30
|
|
|
|
2022-06-21 17:19:12 +05:30
|
|
|
= gitlab_ui_form_for @project, url: project_import_path(@project), method: :post, html: { class: 'js-project-import' } do |f|
|
2022-08-27 11:52:29 +05:30
|
|
|
= render 'shared/import_form', f: f
|
2015-11-26 14:37:03 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.form-actions
|
2023-03-17 16:20:25 +05:30
|
|
|
= f.submit 'Start import', pajamas_button: true, data: { disable_with: false }
|