{% extends "vantage/base.html" %} {% load static vantage i18n %} {% comment %} The no-JavaScript half of global search. Same querysets, same permission filtering, same caps as the palette — only the rendering differs. {% endcomment %} {% block head %} {% comment %} Also linked by the palette partial; a repeated href costs one cache hit. The results page must stay styled even where COMMAND_PALETTE is switched off. {% endcomment %} {% endblock %} {% block content %}

{% translate "Search" context "page title, the noun" %}

{% translate "Across every section you can open." %}

{% if query %}

{% blocktranslate count counter=total %}{{ counter }} result for “{{ query }}”{% plural %}{{ counter }} results for “{{ query }}”{% endblocktranslate %}

{% endif %} {% for group in groups %}

{% icon group.icon %}{{ group.label }}

{% if group.truncated %}{% translate "See all" %}{% else %}{% translate "Open list" %}{% endif %}
{% empty %}
{% icon "search" class="v-empty-icon" %} {% if not query %}

{% translate "Search everything" %}

{% blocktranslate trimmed %} Type at least {{ min_length }} characters to look across every section you have access to. {% endblocktranslate %}

{% elif query|length < min_length %}

{% translate "Keep typing" %}

{% blocktranslate %}A search needs at least {{ min_length }} characters.{% endblocktranslate %}

{% else %}

{% blocktranslate %}No matches for “{{ query }}”{% endblocktranslate %}

{% translate "Nothing you can open matches that. Try fewer words." %}

{% endif %}
{% endfor %} {% endblock %}