{% if filter == 'inbox' %}Nothing to decide. Next run at 04:00.{% elif q %}No questions match “{{ q }}”.{% else %}No questions here.{% endif %}
{% else %}
State
Id
Question
5 nights
Changed
{% for row in rows %}{% with r=row, agent=agent, filter=filter %}{% include "_row.html" %}{% endwith %}{% endfor %}
{# pre-rendered panels: a click on one of these rows swaps the template in without a request (see base.html) #}
{% for p in panels %}{% with q=p.q, qkey=p.qkey, last=p.last, reasons=p.reasons, actions=p.actions, events=p.events, context=p.context, agent=agent, filter=filter %}{% include "_panel.html" %}{% endwith %}{% endfor %}
{% endif %}