{% extends "base.html" %}
{% from "icons.html" import icon, sep %}
{% block title %}{{ _("Search", context="noun") }} · Synaptane{% endblock %}
{% block crumbs %}{{ sep() }}{{ _("Search", context="noun") }}{% endblock %}
{% block content %}
{{ _("Search", context="noun") }}
{{ _("Dropped in the inbox, not yet filed in the wiki.") }}
{% if not hits and pending %}{{ _(pl(pending|length, "No wiki page, but {count} pending note above.", "No wiki page, but {count} pending notes above."), count=pending|length) }}{% else %}{{ _(pl(hits|length, "{count} result", "{count} results"), count=hits|length) }}{% endif %}
{{ hit.space_name }} {{ hit.path }}{% if hit.section %} · § {{ highlight(hit.section, terms) }}{% endif %}{% if hit.extracted %} · {{ _("extracted text") }}{% endif %}{% if hit.match == 'meaning' %} · {{ _("by meaning") }}{% elif hit.match == 'both' %} · {{ _("words and meaning") }}{% endif %}{% if hit.verified %} · {{ icon('verified', 13) }}{{ _("verified") }}{% elif hit.stale %} · {{ icon('clock', 13) }}{{ _("to review") }}{% endif %}{% if hit.reported %} · {{ icon('clock', 13) }}{{ _("reported as outdated") }}{% endif %}{% if hit.edit %} · {{ _("edited on") }} {{ _("by") }} {{ hit.edit.author }}{% if hit.edit.ai %} {{ _("AI") }}{% endif %}{% endif %}
{{ highlight(line, terms) }}
{% endif %}{% endfor %}