Welcome to mirror list, hosted at ThFree Co, Russian Federation.

import.html.haml « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d11372be61b25f57b05ead2d3e53c3b34cc523b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- if @project.import_in_progress?
  .save-project-loader
    %center
      %h2
        %i.icon-spinner.icon-spin
        Import in progress.
      %p.monospace git clone --bare #{@project.import_url}
      %p Please wait while we import the repository for you. Refresh at will.
      :javascript
        new ProjectImport();

- elsif @project.import_failed?
  .save-project-loader
    %center
      %h2
        Import failed. Retry?
  %hr
  - 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
          %span Import existing repo
        .col-sm-10
          = f.text_field :import_url, class: 'form-control', placeholder: 'https://github.com/randx/six.git'
          .bs-callout.bs-callout-info
            This url must be publicly accessible or you can add a username and password like this: https://username:password@gitlab.com/company/project.git.
            %br
            The import will time out after 2 minutes. For big repositories, use a clone/push combination.
      .form-actions
        = f.submit 'Retry import', class: "btn btn-create", tabindex: 4