From fb632d269f703fdfd90fb5a1c1740d4d5dc20cd7 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 12 May 2011 04:04:42 -0400 Subject: [PATCH] Updated the search template to only show results when there is atleast a query string present --- apps/dynamic_search/templates/search_results.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/dynamic_search/templates/search_results.html b/apps/dynamic_search/templates/search_results.html index e0c0740912..79ded014eb 100644 --- a/apps/dynamic_search/templates/search_results.html +++ b/apps/dynamic_search/templates/search_results.html @@ -6,8 +6,12 @@ {% if form %} {% include "search_results_subtemplate.html" %} {% endif %} - - {% include "generic_list_subtemplate.html" %} + {% if query_string %} + {% include "generic_list_subtemplate.html" %} + {% endif %} + {% if not form and not query_string %} + {% include "generic_list_subtemplate.html" %} + {% endif %} {% endblock %} {% block footer %}