2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Import repository"
|
2014-11-29 17:50:25 -05:00
|
|
|
%h3.page-title
|
2015-11-11 10:22:51 -05: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
|
|
|
|
2018-04-12 16:11:22 -04:00
|
|
|
= form_for @project, url: project_import_path(@project), method: :post 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
|
2018-09-18 05:58:22 -04:00
|
|
|
= f.submit 'Start import', class: "btn btn-success", tabindex: 4
|