BigW Consortium Gitlab

import.html.haml 1.41 KB
Newer Older
1 2
- if @project.import_in_progress?
  .save-project-loader
3
    .center
4
      %h2
5
        %i.fa.fa-spinner.fa-spin
6
        Import in progress.
7
      %p.monospace git clone --bare #{hidden_pass_url(@project.import_url)}
8 9 10 11 12 13
      %p Please wait while we import the repository for you. Refresh at will.
      :javascript
        new ProjectImport();

- elsif @project.import_failed?
  .save-project-loader
14
    .center
15 16 17
      %h2
        Import failed. Retry?
  %hr
18 19 20 21
  - if can?(current_user, :admin_project, @project)
    = form_for @project, url: retry_import_project_path(@project), method: :put, html: { class: 'form-horizontal' } do |f|
      .form-group.import-url-data
        = f.label :import_url, class: 'control-label' do
22
          %span Import existing git repo
23 24 25
        .col-sm-10
          = f.text_field :import_url, class: 'form-control', placeholder: 'https://github.com/randx/six.git'
          .bs-callout.bs-callout-info
Ben Bodenmiller committed
26
            This URL must be publicly accessible or you can add a username and password like this: https://username:password@gitlab.com/company/project.git.
27
            %br
28
            The import will time out after 4 minutes. For big repositories, use a clone/push combination.
29
            For SVN repositories, check #{link_to "this migrating from SVN doc.", "http://doc.gitlab.com/ce/workflow/migrating_from_svn.html"}
30 31
      .form-actions
        = f.submit 'Retry import', class: "btn btn-create", tabindex: 4