_import_form.html.haml 836 字节
Newer Older
E
Eric Eastwood 已提交
1 2
- ci_cd_only = local_assigns.fetch(:ci_cd_only, false)

D
Douwe Maan 已提交
3
.form-group.import-url-data
F
Filipa Lacerda 已提交
4
  = f.label :import_url, class: 'label-light' do
E
Eric Eastwood 已提交
5 6
    %span
      = _('Git repository URL')
D
Douwe Maan 已提交
7

E
Eric Eastwood 已提交
8
  = f.text_field :import_url, autocomplete: 'off', class: 'form-control', placeholder: 'https://username:password@gitlab.company.com/group/project.git', required: true
F
Filipa Lacerda 已提交
9 10 11 12

  .well.prepend-top-20
    %ul
      %li
E
Eric Eastwood 已提交
13
        = _('The repository must be accessible over <code>http://</code>, <code>https://</code> or <code>git://</code>.').html_safe
F
Filipa Lacerda 已提交
14
      %li
E
Eric Eastwood 已提交
15
        = _('If your HTTP repository is not publicly accessible, add authentication information to the URL: <code>https://username:password@gitlab.company.com/group/project.git</code>.').html_safe
F
Filipa Lacerda 已提交
16
      %li
E
Eric Eastwood 已提交
17
        = import_will_timeout_message(ci_cd_only)
F
Filipa Lacerda 已提交
18
      %li
E
Eric Eastwood 已提交
19
        = import_svn_message(ci_cd_only)