Hide header in search results view

This commit is contained in:
Roberto Rosario
2011-02-10 21:24:09 -04:00
parent 492a346560
commit 58d6ef7933
4 changed files with 7 additions and 0 deletions

View File

@@ -81,6 +81,7 @@
{% with subtemplate.hide_object as hide_object %}
{% with subtemplate.main_object as main_object %}
{% with subtemplate.hide_link as hide_link %}
{% with subtemplate.hide_header as hide_header %}
<div class="grid_{{ subtemplate.grid|default:11 }}">
{% include subtemplate.name %}
@@ -95,6 +96,7 @@
{% endwith %}
{% endwith %}
{% endwith %}
{% endwith %}
{% endfor %}
</div>
{% endblock %}

View File

@@ -49,6 +49,7 @@
{% with subtemplate.hide_object as hide_object %}
{% with subtemplate.main_object as main_object %}
{% with subtemplate.hide_link as hide_link %}
{% with subtemplate.hide_header as hide_header %}
{% include subtemplate.name %}
{% endwith %}
{% endwith %}
@@ -56,6 +57,7 @@
{% endwith %}
{% endwith %}
{% endwith %}
{% endwith %}
{% endfor %}
{% endblock %}

View File

@@ -13,6 +13,7 @@
{% with subtemplate.hide_object as hide_object %}
{% with subtemplate.main_object as main_object %}
{% with subtemplate.hide_link as hide_link %}
{% with subtemplate.hide_header as hide_header %}
{% include subtemplate.name %}
{% endwith %}
{% endwith %}
@@ -20,6 +21,7 @@
{% endwith %}
{% endwith %}
{% endwith %}
{% endwith %}
{% endfor %}
{% endblock %}

View File

@@ -76,6 +76,7 @@ def search(request):
'form':form,
'object_list':object_list,
'form_title':_(u'Search'),
'hide_header':True,
'title':_(u'results with: %s') % query_string
}