{% extends "base.html" %} {% block title %}{{ (q ~ ' · ') if q }}Search · tkt ui{% endblock %} {% set picked = options.get('kind') or [] %} {% block main %}

Search{% if data %} {{ data.total }}{% endif %}

{% for k in kinds %} {% endfor %} {% for v in options.get('limit') or [] %}{% endfor %} {% if options is filtered %}Clear filters{% endif %} Words or a question: items with every word first, then with some, then their linked items. No kind ticked: all.
{% if not data %}

Type a query: words from a title or text, or an id (PAY-12, D3, doc://design).

{% elif data['items'] %} {% for i in data['items'] %} {% set href = (base ~ '/' ~ paths[i.kind] ~ '/' ~ i.id) if i.kind in paths else '' %} {% set title = ('› ' ~ i.anchor) if i.anchor else i.title %} {% set w = i.get('why') or {} %} {% endfor %}
KindRefTitleStatusWhy
{{ i.kind }} {% if i.kind == 'ticket' %}{{ type_icon(i.type) }} {% endif %}{% if href %}{{ i.ref }}{% else %}{{ i.ref }}{% endif %} {% if href %}{{ title }}{% else %}{{ title }}{% endif %} {% if i.snippet %}
{{ link(i.snippet) }}
{% endif %}
{% if i.kind == 'decision' %}{{ i.status }} {% elif i.status %}{{ i.status | replace('_', ' ') }}{% endif %}{% if w.via == 'words' %}{{ 'all words' if w.every else 'words: ' ~ (w.words | join(' ')) }} {%- elif w.via == 'graph' %}← {{ w.of }} {{ w.link }}{% else %}{{ w.via or '' }}{% endif %}
{% if data.total > data['items'] | length %}

{{ data.total }} matches; the best {{ data['items'] | length }} shown (--limit).

{% endif %} {% else %}

No matches for “{{ q }}”.

{% endif %}
{% endblock %}