Add new appearance app to hold all of the base templates, images, icons and external packages related to the frontend and look of the project
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% extends 'main/base.html' %}
|
||||
{% extends 'appearance/base.html' %}
|
||||
{% load i18n %}
|
||||
{% block title %} :: {% trans 'Search results' %}{% endblock %}
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
{% include 'dynamic_search/search_results_subtemplate.html' %}
|
||||
{% endif %}
|
||||
{% if query_string %}
|
||||
{% include 'main/generic_list_subtemplate.html' %}
|
||||
{% include 'appearance/generic_list_subtemplate.html' %}
|
||||
{% endif %}
|
||||
{% if not form and not query_string %}
|
||||
{% include 'main/generic_list_subtemplate.html' %}
|
||||
{% include 'appearance/generic_list_subtemplate.html' %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% with 'get' as submit_method %}
|
||||
{% with form_title as title %}
|
||||
{% include 'main/generic_form_subtemplate.html' %}
|
||||
{% include 'appearance/generic_form_subtemplate.html' %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
|
||||
@@ -11,7 +11,7 @@ from ..settings import RECENT_COUNT
|
||||
register = Library()
|
||||
|
||||
|
||||
@register.inclusion_tag('search_results_subtemplate.html', takes_context=True)
|
||||
@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'}),
|
||||
@@ -24,7 +24,7 @@ def search_form(context):
|
||||
return context
|
||||
|
||||
|
||||
@register.inclusion_tag('main/generic_subtemplate.html', takes_context=True)
|
||||
@register.inclusion_tag('appearance/generic_subtemplate.html', takes_context=True)
|
||||
def recent_searches_template(context):
|
||||
if not context['user'].is_anonymous():
|
||||
recent_searches = RecentSearch.objects.filter(user=context['user'])
|
||||
|
||||
@@ -56,7 +56,7 @@ def search(request, advanced=False):
|
||||
if advanced:
|
||||
form = AdvancedSearchForm(data=request.GET, search_model=document_search)
|
||||
return render_to_response(
|
||||
'main/generic_form.html',
|
||||
'appearance/generic_form.html',
|
||||
{
|
||||
'form': form,
|
||||
'title': _('Advanced search'),
|
||||
|
||||
Reference in New Issue
Block a user