Render gitlab.com import block only if host is not gitlab.com
This commit is contained in:
parent
829d72d30a
commit
71e146999c
1 changed files with 13 additions and 12 deletions
|
@ -53,18 +53,19 @@
|
|||
Import projects from GitHub
|
||||
= render 'github_import_modal'
|
||||
|
||||
.project-import.form-group
|
||||
.col-sm-2
|
||||
.col-sm-10
|
||||
- if gitlab_import_enabled?
|
||||
= link_to status_import_gitlab_path do
|
||||
%i.fa.fa-heart
|
||||
Import projects from GitLab.com
|
||||
- elsif request.host != 'gitlab.com'
|
||||
= link_to '#', class: 'how_to_import_link light' do
|
||||
%i.fa.fa-heart
|
||||
Import projects from GitLab.com
|
||||
= render 'gitlab_import_modal'
|
||||
- unless request.host == 'gitlab.com'
|
||||
.project-import.form-group
|
||||
.col-sm-2
|
||||
.col-sm-10
|
||||
- if gitlab_import_enabled?
|
||||
= link_to status_import_gitlab_path do
|
||||
%i.fa.fa-heart
|
||||
Import projects from GitLab.com
|
||||
- else
|
||||
= link_to '#', class: 'how_to_import_link light' do
|
||||
%i.fa.fa-heart
|
||||
Import projects from GitLab.com
|
||||
= render 'gitlab_import_modal'
|
||||
|
||||
.project-import.form-group
|
||||
.col-sm-2
|
||||
|
|
Loading…
Reference in a new issue