Explorar o código

Merge pull request #154 from tobiasmcnulty/search-results

correct "You search for..." text and formatting on search results page
Tobias McNulty %!s(int64=7) %!d(string=hai) anos
pai
achega
9e4f69f95f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bakerydemo/templates/search/search_results.html

+ 1 - 1
bakerydemo/templates/search/search_results.html

@@ -9,7 +9,7 @@
     </h1>
 
     {% if search_results %}
-    You searched <p>{% if request.GET.query %} for “{{ request.GET.query }}”{% endif %}</p>
+    <p>You searched{% if search_query %} for “{{ search_query }}”{% endif %}</p>
         <ul>
             {% for result in search_results %}
                 <li>