{% extends "base.html" %} {% from "_macros.html" import icon %} {# Search, `GET /search` -- see `api/search.py` for what is searched and who may see what. Its own page with the chat sidebar. Not a dialog over the current page -- a result is a link somebody may want to open in another tab, and a search is a URL worth keeping. The filter is a row of links, so a filtered search is a real address. A type the reader may not open is not offered at all (`offered`). The query box is a plain GET form with the filter riding along hidden, so pressing Enter searches the same filter again rather than falling back to "All". #} {% block title %}{{ t("Search") }} - {{ brand.name }}{% endblock %} {% block head %} {% endblock %} {% block body_attrs %} data-authenticated="true"{% endblock %} {% block body %} {#- Each type's name and mark, said once for the tabs and the headings. The tab for chats is short; the heading says what it holds. -#} {% set kinds = { "chats": (t("Chats"), t("Chats & agent sessions"), "chat"), "files": (t("Files"), t("Files"), "file-text"), "memories": (t("Memory"), t("Memory"), "user"), } %}
{% include "partials/sidebar.html" %}
{% include "partials/_sidebar_toggle.html" %}

{{ t("Search") }}

{% endblock %}