--- a/Allura/allura/templates/search_index.html
+++ b/Allura/allura/templates/search_index.html
@@ -24,35 +24,10 @@
{% block header %}Search Project: {{q}}{% endblock %}
{% block content %}
- <div class="grid-24">
- <form method="GET" action="search">
- <input type="text" name="q" value="{{q}}" class="title"/><br/>
- Search history? <input type="checkbox" name="history" {% if history %}checked{% endif %}/><br/>
- <br/>
- <input type="submit" value="Search"/>
- </form>
- {% if count == 0 and q %}
- <p>No results.</p>
- {% elif count == 1 and q %}
- <p>{{count}} result.</p>
- {% elif count > 1 and q %}
- <p>{{count}} results.</p>
- {% endif %}
- <hr/>
- </div>
-
- <div class="grid-24">
- <ol>
- {% for doc in results %}
- <li>
- <a href="{{doc['url_s']}}">
- {{- h.get_first(doc, 'title') or h.get_first(doc, 'title_s') -}} {#- title_s is legacy -#}
- </a>
- {% if doc.get('snippet') %}
- <p>{{doc['snippet']|safe}}</p>
- {% endif %}
- </li>
- {% endfor %}
- </ol>
- </div>
+ {{c.search_results.display(results=results,q=q,history=history,
+ count=count,limit=limit,page=page,search_error=search_error,
+ sort_score_url=sort_score_url, sort_date_url=sort_date_url, sort_field=sort_field,
+ search_comments_disable=search_comments_disable,
+ search_history_disable=search_history_disable,
+ hide_app_project_switcher=hide_app_project_switcher)}}
{% endblock %}