Don't display "git clone --bare <URL>" if no URL is available

Introduced in !1231
This commit is contained in:
Stan Hu 2015-09-14 22:31:45 -07:00
parent 080a086d76
commit 4d2b67acc0
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@
%h2
%i.fa.fa-spinner.fa-spin
Import in progress.
%p.monospace git clone --bare #{hidden_pass_url(@project.import_url)}
- if @project.import_url.present?
%p.monospace git clone --bare #{hidden_pass_url(@project.import_url)}
%p Please wait while we import the repository for you. Refresh at will.
:javascript
new ProjectImport();