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