{#- What the bar's search suggests as one types: the first matches of each kind, the words found marked, where each is; what is elsewhere than the community searched, in one line; all the results and the keys at the foot. On an empty field, what one searched and opened lately, or nothing. A piece of a page: the bar's script (`vite/src/suggest.js`) puts it under the field, and moves among the options. Drawn in `mockups/templates/search-suggest.html` and `search-recent.html`. -#} {% import "ads_macros.html" as m with context %} {% set results_url = url_for("search.search_main", q=q, community=scope or none) %} {% set opened = [] if q else recently_opened(user) %} {#- On an empty field with nothing searched or opened yet, nothing: the script opens no panel. -#} {% if q or recent_searches or opened %}
{{ _("Nothing matches “%(q)s”.", q=q) }}
{% endfor %} {% if elsewhere %} {{ icon("world") }}{{ ngettext("%(num)d result in your other communities", "%(num)d results in your other communities", elsewhere) }}{{ icon("chevron-right") }} {% endif %}