summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-08-10 11:10:04 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-08-10 11:10:04 +0200
commitef46221607442aaa5c2eb2c16b5f22f54abb9d3c (patch)
treeef46dd085f4d86076856221d07e29ec3009f5b1e
parent6907af28d05c22431b69f5ea7c0c685ac21131e9 (diff)
downloadgitlab-ce-ef46221607442aaa5c2eb2c16b5f22f54abb9d3c.tar.gz
Remove duplicate link_to statementszj-import-gitlab-fa-icon
-rw-r--r--app/views/projects/new.html.haml18
1 files changed, 6 insertions, 12 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index 432887c1adb..adcc984f506 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -49,21 +49,15 @@
= icon('github', text: 'GitHub')
%div
- if bitbucket_import_enabled?
- - if bitbucket_import_configured?
- = link_to status_import_bitbucket_path, class: 'btn import_bitbucket', "data-no-turbolink" => "true" do
- = icon('bitbucket', text: 'Bitbucket')
- - else
- = link_to status_import_bitbucket_path, class: 'how_to_import_link btn import_bitbucket', "data-no-turbolink" => "true" do
- = icon('bitbucket', text: 'Bitbucket')
+ = link_to status_import_bitbucket_path, class: "btn import_bitbucket #{'how_to_import_link' unless bitbucket_import_configured?}", "data-no-turbolink" => "true" do
+ = icon('bitbucket', text: 'Bitbucket')
+ - unless bitbucket_import_configured?
= render 'bitbucket_import_modal'
%div
- if gitlab_import_enabled?
- - if gitlab_import_configured?
- = link_to status_import_gitlab_path, class: 'btn import_gitlab' do
- = icon('gitlab', text: 'GitLab.com')
- - else
- = link_to status_import_gitlab_path, class: 'how_to_import_link btn import_gitlab' do
- = icon('gitlab', text: 'GitLab.com')
+ = link_to status_import_gitlab_path, class: "btn import_gitlab #{'how_to_import_link' unless bitbucket_import_configured?}" do
+ = icon('gitlab', text: 'GitLab.com')
+ - unless gitlab_import_configured?
= render 'gitlab_import_modal'
%div
- if gitorious_import_enabled?