new.html.haml 533 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?
Douwe Maan's avatar
Douwe Maan committed
8
9
10
11
12
  .panel.panel-danger
    .panel-heading The repository could not be imported.
    .panel-body
      %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