summaryrefslogtreecommitdiff
path: root/app/views/projects/new.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-21 11:13:24 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-21 11:14:17 -0800
commit71e146999c405ab301cd3c3e3aa03b89d46c461e (patch)
tree2dfb83b4a19eb1f45f26d9e4e77d60feb373b4b4 /app/views/projects/new.html.haml
parent829d72d30ab5e39cb5e5664c4afd9c36b1786cb5 (diff)
downloadgitlab-ce-71e146999c405ab301cd3c3e3aa03b89d46c461e.tar.gz
Render gitlab.com import block only if host is not gitlab.com
Diffstat (limited to 'app/views/projects/new.html.haml')
-rw-r--r--app/views/projects/new.html.haml25
1 files changed, 13 insertions, 12 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index 33162ded4a6..5216f308110 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -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