Commit 44c94039 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Hide retry import form for non masters

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent aaff3566
...@@ -15,15 +15,16 @@ ...@@ -15,15 +15,16 @@
%h2 %h2
Import failed. Retry? Import failed. Retry?
%hr %hr
= form_for @project, url: retry_import_project_path(@project), method: :put, html: { class: 'form-horizontal' } do |f| - if can?(current_user, :admin_project, @project)
.form-group.import-url-data = form_for @project, url: retry_import_project_path(@project), method: :put, html: { class: 'form-horizontal' } do |f|
= f.label :import_url, class: 'control-label' do .form-group.import-url-data
%span Import existing repo = f.label :import_url, class: 'control-label' do
.col-sm-10 %span Import existing repo
= f.text_field :import_url, class: 'form-control', placeholder: 'https://github.com/randx/six.git' .col-sm-10
.bs-callout.bs-callout-info = f.text_field :import_url, class: 'form-control', placeholder: 'https://github.com/randx/six.git'
This url must be publicly accessible or you can add a username and password like this: https://username:password@gitlab.com/company/project.git. .bs-callout.bs-callout-info
%br This url must be publicly accessible or you can add a username and password like this: https://username:password@gitlab.com/company/project.git.
The import will time out after 2 minutes. For big repositories, use a clone/push combination. %br
.form-actions The import will time out after 2 minutes. For big repositories, use a clone/push combination.
= f.submit 'Retry import', class: "btn btn-create", tabindex: 4 .form-actions
= f.submit 'Retry import', class: "btn btn-create", tabindex: 4
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment