new.html.haml 526 Bytes
Newer Older
Douwe Maan's avatar
Douwe Maan committed
1
- page_title "Import repository"
2
%h3.page-title
3
  Import repository
4
5
6

%hr

7
- if @project.import_failed?
8
9
10
  .card.bg-danger
    .card-header The repository could not be imported.
    .card-body
Douwe Maan's avatar
Douwe Maan committed
11
12
      %pre
        :preserve
13
          #{h(sanitize_repo_path(@project, @project.import_error))}
14

15
= form_for @project, url: project_import_path(@project), method: :post, html: { class: 'form-horizontal' } do |f|
Douwe Maan's avatar
Douwe Maan committed
16
17
  = render "shared/import_form", f: f

18
19
  .form-actions
    = f.submit 'Start import', class: "btn btn-create", tabindex: 4