{#- The Review tab: the acceptance checklist with screenshots. Expects: t (the task), review, optional error. Refetched on live events; the comment boxes are inside it, so a refresh waits while one holds text (app.js). -#} {%- macro thumbs(items) -%} {% if items %} {% endif %} {%- endmacro -%}
{% if error %}{% endif %} {% if review.steps %}

{{ review.accepted }} of {{ review.steps|length }} accepted{% if review.rejected %} ยท {{ review.rejected }} rejected{% endif %}. A decision reaches {{ t.session_name or "the bound session" }} as a comment.

    {% for s in review.steps %} {%- set base = "/p/" ~ t.project_slug ~ "/t/" ~ t.key ~ "/review/" ~ s.id %}
  1. {{ s.status }}
    {% if s.details_md %}
    What, how and why
    {{ s.details_md|markdown }}
    {% endif %} {{ thumbs(s.attachments) }}
    {% if s.status != "rejected" %}{% endif %} {% if s.status != "accepted" %}{% endif %}
  2. {% endfor %}
{% else %}

No checklist yet. The agent writes what you should check with review_steps_set and attaches screenshots with attach_file.

{% endif %} {% if review.loose %}

Other screenshots

{{ thumbs(review.loose) }} {% endif %}