2020-06-22 08:08:47 -04:00
|
|
|
- page_title _("Import repository")
|
2014-11-29 17:50:25 -05:00
|
|
|
%h3.page-title
|
2021-09-03 08:09:03 -04:00
|
|
|
= _('Import repository')
|
2014-11-29 17:50:25 -05:00
|
|
|
|
|
|
|
%hr
|
|
|
|
|
2015-11-11 10:22:51 -05:00
|
|
|
- if @project.import_failed?
|
2018-07-18 05:20:37 -04:00
|
|
|
.card.border-danger
|
|
|
|
.card-header.bg-danger.text-white The repository could not be imported.
|
2018-04-10 13:11:34 -04:00
|
|
|
.card-body
|
2015-11-12 06:45:49 -05:00
|
|
|
%pre
|
|
|
|
:preserve
|
2018-11-27 04:41:27 -05:00
|
|
|
#{h(@project.import_state.last_error)}
|
2015-11-11 10:22:51 -05:00
|
|
|
|
2022-01-26 16:16:58 -05:00
|
|
|
= form_for @project, url: project_import_path(@project), method: :post, html: { class: 'js-project-import' } do |f|
|
2015-11-11 10:26:12 -05:00
|
|
|
= render "shared/import_form", f: f
|
|
|
|
|
2014-11-29 17:50:25 -05:00
|
|
|
.form-actions
|
2022-01-26 16:16:58 -05:00
|
|
|
= f.submit 'Start import', class: "gl-button btn btn-confirm", data: { disable_with: false }
|