{# TODO: when help text provided, show button Help #}
{% set search_project = request.GET['project'] == '1' %}
{% if not search_comments_disable %} {% set comments = request.GET['search_comments'] %} {% endif %}
 
{% if search_error %}
{{ search_error }}
{% endif %}
{{widget.fields['page_list'].display(limit=limit, page=page, count=count)}}
{% for doc in results %}
{# TODO: mark matches in title and snippet #}

{{- h.get_first(doc, 'title') or h.get_first(doc, 'title_s') -}} {#- title_s is legacy -#} {% if doc['type_s'] %}{{ '(%s)' % doc['type_s'] }}{% endif %}
{{ doc.snippet }} Last updated: {{ h.ago_string(doc['mod_date_dt']) }}

{% endfor %}
{{widget.fields['page_list'].display(limit=limit, page=page, count=count)}} {{widget.fields['page_size'].display(limit=limit, count=count)}}
{# TODO: highlight active sorting order #} {#

Sort by relevance or date

#}