Browse Source

Merge pull request #154 from tobiasmcnulty/search-results

correct "You search for..." text and formatting on search results page
Tobias McNulty 7 năm trước cách đây
mục cha
commit
9e4f69f95f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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>