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:
Roberto Rosario
2015-03-30 02:17:40 -04:00
parent 3131751b25
commit 5dabc0a34a
290 changed files with 298 additions and 298 deletions
@@ -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'])
+1 -1
View File
@@ -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'),