debian-mirror-gitlab/app/views/projects/imports/new.html.haml

20 lines
664 B
Text
Raw Normal View History

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|
= c.body do
= @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
2022-08-27 11:52:29 +05:30
= f.submit 'Start import', class: 'gl-button btn btn-confirm', data: { disable_with: false }