summaryrefslogtreecommitdiff
path: root/app/views/projects/new.html.haml
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2017-08-24 17:43:11 +0700
committerMark Fletcher <mark@gitlab.com>2017-08-24 17:43:11 +0700
commit80f657c05e8cd2f87abb4525695af19181607f04 (patch)
treef0b22571dbfb77042837fdc4af038c6508630145 /app/views/projects/new.html.haml
parent19dfd9e9d6cf8c260dea6a339b1842fc2399729e (diff)
downloadgitlab-ce-80f657c05e8cd2f87abb4525695af19181607f04.tar.gz
Disable GitLab Project Import Button if source disabled
Diffstat (limited to 'app/views/projects/new.html.haml')
-rw-r--r--app/views/projects/new.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index 647e0a772b1..5698bb281b4 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -68,9 +68,10 @@
- if git_import_enabled?
%button.btn.js-toggle-button.import_git{ type: "button" }
= icon('git', text: 'Repo by URL')
- .import_gitlab_project.has-tooltip{ data: { container: 'body' } }
- = link_to new_import_gitlab_project_path, class: 'btn btn_import_gitlab_project project-submit' do
- = icon('gitlab', text: 'GitLab export')
+ - if gitlab_project_import_enabled?
+ .import_gitlab_project.has-tooltip{ data: { container: 'body' } }
+ = link_to new_import_gitlab_project_path, class: 'btn btn_import_gitlab_project project-submit' do
+ = icon('gitlab', text: 'GitLab export')
.row
.col-lg-12