{#- 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" 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 %} {{ q.asked_by }} · asked

    {%- if q.is_open -%} {%- if q.blocking -%}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 }}{% 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 %}