Commit 71e14699 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Render gitlab.com import block only if host is not gitlab.com

parent 829d72d3
...@@ -53,18 +53,19 @@ ...@@ -53,18 +53,19 @@
Import projects from GitHub Import projects from GitHub
= render 'github_import_modal' = render 'github_import_modal'
.project-import.form-group - unless request.host == 'gitlab.com'
.col-sm-2 .project-import.form-group
.col-sm-10 .col-sm-2
- if gitlab_import_enabled? .col-sm-10
= link_to status_import_gitlab_path do - if gitlab_import_enabled?
%i.fa.fa-heart = link_to status_import_gitlab_path do
Import projects from GitLab.com %i.fa.fa-heart
- elsif request.host != 'gitlab.com' Import projects from GitLab.com
= link_to '#', class: 'how_to_import_link light' do - else
%i.fa.fa-heart = link_to '#', class: 'how_to_import_link light' do
Import projects from GitLab.com %i.fa.fa-heart
= render 'gitlab_import_modal' Import projects from GitLab.com
= render 'gitlab_import_modal'
.project-import.form-group .project-import.form-group
.col-sm-2 .col-sm-2
......
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