Remove unused search code and template
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
|
||||
{% block content %}
|
||||
{% if form %}
|
||||
{% include 'dynamic_search/search_results_subtemplate.html' %}
|
||||
{% with 'get' as submit_method %}
|
||||
{% with form_title as title %}
|
||||
{% include 'appearance/generic_form_subtemplate.html' %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
{% if query_string %}
|
||||
{% include 'appearance/generic_list_subtemplate.html' %}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{% with 'get' as submit_method %}
|
||||
{% with form_title as title %}
|
||||
{% include 'appearance/generic_form_subtemplate.html' %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
@@ -11,19 +11,6 @@ from ..settings import RECENT_COUNT
|
||||
register = Library()
|
||||
|
||||
|
||||
@register.inclusion_tag('dynamic_search/search_results_subtemplate.html', takes_context=True)
|
||||
def search_form(context):
|
||||
context.update({
|
||||
'form': SearchForm(initial={'q': context.get('query_string', {}).get('q'), 'source': 'sidebar'}),
|
||||
'request': context['request'],
|
||||
'form_action': reverse('search'),
|
||||
'form_title': _('Search'),
|
||||
'submit_label': _('Search'),
|
||||
'submit_icon_famfam': 'zoom',
|
||||
})
|
||||
return context
|
||||
|
||||
|
||||
@register.inclusion_tag('appearance/generic_subtemplate.html', takes_context=True)
|
||||
def recent_searches_template(context):
|
||||
if not context['user'].is_anonymous():
|
||||
|
||||
Reference in New Issue
Block a user