{% 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 %} {% if error %}{% endif %} {% if q and not error and pending %}

{{ _("Waiting to be tidied") }}

{{ _("Dropped in the inbox, not yet filed in the wiki.") }}

{% endif %} {% if q and not error %}

{% 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 %}

    {% for hit in hits %} {% set href = "/o/" ~ hit.org ~ "/" ~ hit.space ~ "/p/" ~ url_path(hit.path) %}
  1. {{ highlight(hit.title, terms) }}

    {{ 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.passage %}
    {% for line in hit.passage %}{% if line == "…" %}{% else %}

    {{ highlight(line, terms) }}

    {% endif %}{% endfor %}
    {% endif %}
  2. {% else %} {% if not pending %}
  3. {{ _("No results.") }}
  4. {% endif %} {% endfor %}
{% endif %} {% endblock %}