Commit ef462216 authored by Z.J. van de Weg's avatar Z.J. van de Weg

Remove duplicate link_to statements

parent 6907af28
...@@ -49,21 +49,15 @@ ...@@ -49,21 +49,15 @@
= icon('github', text: 'GitHub') = icon('github', text: 'GitHub')
%div %div
- if bitbucket_import_enabled? - if bitbucket_import_enabled?
- if bitbucket_import_configured? = link_to status_import_bitbucket_path, class: "btn import_bitbucket #{'how_to_import_link' unless bitbucket_import_configured?}", "data-no-turbolink" => "true" do
= link_to status_import_bitbucket_path, class: 'btn import_bitbucket', "data-no-turbolink" => "true" do = icon('bitbucket', text: 'Bitbucket')
= icon('bitbucket', text: 'Bitbucket') - unless bitbucket_import_configured?
- else
= link_to status_import_bitbucket_path, class: 'how_to_import_link btn import_bitbucket', "data-no-turbolink" => "true" do
= icon('bitbucket', text: 'Bitbucket')
= render 'bitbucket_import_modal' = render 'bitbucket_import_modal'
%div %div
- if gitlab_import_enabled? - if gitlab_import_enabled?
- if gitlab_import_configured? = link_to status_import_gitlab_path, class: "btn import_gitlab #{'how_to_import_link' unless bitbucket_import_configured?}" do
= link_to status_import_gitlab_path, class: 'btn import_gitlab' do = icon('gitlab', text: 'GitLab.com')
= icon('gitlab', text: 'GitLab.com') - unless gitlab_import_configured?
- else
= link_to status_import_gitlab_path, class: 'how_to_import_link btn import_gitlab' do
= icon('gitlab', text: 'GitLab.com')
= render 'gitlab_import_modal' = render 'gitlab_import_modal'
%div %div
- if gitorious_import_enabled? - if gitorious_import_enabled?
......
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