{#- One question to the owner, on the card (place "card") and in the Inbox (place "inbox", with its card). The owner answers with an option, a text, or both; a look question with "fine" or its remarks. The look URL opens in the owner's own browser. -#} {%- macro question_item(q, place) -%}
{% if place == "inbox" %}{{ q.task_key }} {{ q.task_title }}{% endif %} #{{ q.id }} {% if q.kind == "look" %}look at this{% endif %} {% if q.run_id %}run {{ q.run_id }}{% else %}desktop session{% endif %} · {{ q.asked_by }} · asked
{%- if q.is_open -%} {%- if q.blocking -%}{{ "blocks the run" if q.run_id else "blocking" }} {%- else -%}goes on with the default at {%- endif -%} {%- elif q.status == "defaulted" -%}closed with the default {%- elif q.status == "withdrawn" -%}withdrawn by {{ q.withdrawn_by }} {%- else -%}answered {% if q.delivered_at %}delivered {% elif q.comment_id %}waits as owner comment #{{ q.comment_id }}{% elif q.turn_seq and q.turn_outcome in ("cancelled", "failed_to_start", "lost") %}not delivered: turn {{ q.turn_seq }} {{ q.turn_outcome|replace("_", " ") }}; it goes with the run's next turn{% elif q.turn_seq %}waits as turn {{ q.turn_seq }}{% else %}not delivered yet{% endif %} {%- endif -%}
{{ q.text }}
{% if q.look_url %}{{ q.look_url }}{% if q.look_account %} · sign in as {{ q.look_account }}{% endif %}
{% if q.choices %}Options: {{ q.choices|join(", ") }} · {% endif %}default: {{ q.default }}
{% if q.answer is not none %}{{ "Default taken" if q.answered_by == "default" else "Your answer" }}: {{ q.answer }}
{% endif %} {% if q.answerable %} {% endif %}