Commits

Kai Diefenbach  committed 73ffd78

Using q instead of phrase for search query

  • Participants
  • Parent commits b80aa23

Comments (0)

Files changed (3)

File lfstheme/templates/lfs/base.html

         <!--[if IE]>
             <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}lfstheme/css/iefixes.css" />
         <![endif]-->
-		
+
         <script type="text/javascript" src="{{ MEDIA_URL }}lfs/jquery/jquery.pack.js"></script>
         <script type="text/javascript" src="{{ MEDIA_URL }}lfs/jquery/jquery.livequery.pack.js"></script>
         <script type="text/javascript" src="{{ MEDIA_URL }}lfs/jquery/jquery.form.pack.js"></script>
                             {% if not ANON_ONLY %}
                                 <a href="{% url lfs_login %}">{% trans 'Login' %}</a> |
                             {% endif %}
-							
+
                         {% endif %}
                         <label for="search">{% trans 'Search' %}:</label>
                         <form id="search-form"
                               action="{% url lfs_search %}"
                               autocomplete="off">
-                            <input id="search-input" type="text" name="phrase" autocomplete="off" data="{% url lfs_livesearch %}" />
+                            <input id="search-input" type="text" name="q" autocomplete="off" data="{% url lfs_livesearch %}" />
                             <input type="submit"
                                    value="{% trans 'Go!' %}" />
                         </form>

File lfstheme/templates/lfs/search/livesearch_results.html

         <tr>
             <td class="all-results"
                 colspan="3">
-                <a href="{% url lfs_search %}?phrase={{ phrase }}">
+                <a href="{% url lfs_search %}?q={{ q }}">
                     {% trans 'All results' %} ({{ total }})
                 </a>
             </td>

File lfstheme/templates/lfs/search/search_results.html

           class="search-results-form">
         <input id="search-input"
                type="text"
-               name="phrase" />
+               name="q" />
 
         <input type="submit"
                value="{% trans 'Go!' %}">
     </form>
 
     <p class="search-results-description">
-        {% trans 'You searched for' %} <span class="search-results-phrase">"{{ phrase }}"</span>.
+        {% trans 'You searched for' %} <span class="search-results-query">"{{ q }}"</span>.
         {% blocktrans count total as counter %}There has been found 1 product.{% plural %}There has been found {{ counter }} products.{% endblocktrans %}
     </p>