Commit bccf5808 authored by Michel Engelen's avatar Michel Engelen Committed by Filipa Lacerda

moved EE-specific code to a subtemplate and added `render_if_exists`...

moved EE-specific code to a subtemplate and added `render_if_exists` conditional to the original file
parent 61690652
......@@ -13,7 +13,4 @@
- unless params[:snippets].eql? 'true'
= render 'filter'
= button_tag _("Search"), class: "btn btn-success btn-search"
- if search_service.use_elasticsearch?
.form-text.text-muted
= link_to _('Advanced search functionality'), help_page_path('user/search/advanced_search_syntax.md'), target: '_blank'
is enabled.
= render_if_exists 'search/form_elasticsearch'
- if search_service.use_elasticsearch?
.form-text.text-muted
= link_to _('Advanced search functionality'), help_page_path('user/search/advanced_search_syntax.md'), target: '_blank'
is enabled.
---
title: "Moved EE-specific code in `app/view/search/_form.html.haml` to subtemplate"
merge_request: 13578
author: Michel Engelen
type: other
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