{#- One question to the owner, on the card (place "card"), in the Inbox (place "inbox", with its card, or "Coordinator" for the coordinator's own) and on the Coordinator page (place "coordinator", a plain form post). 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" and q.task_id is none %}Coordinator {% elif 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 %}

    {% 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 %}
    {% if q.status == "defaulted" %}

    An answer now reaches the agent as a change of course.

    {% endif %}
    {% for c in q.choices %}{% endfor %} {% if q.kind != "look" %}{% endif %}
    {% endif %}
  • {%- endmacro %}