{% from "macros.html" import csrf_field, editor, error_box, icon, actor with context %} {% import "_task_parts.html" as parts with context %} {% set d = drafts or {} %}
{{ parts.head() }} {{ error_box(error, conflict, "/t/" ~ task.ref) }}
History
{% if task.description_md %}
{{ md(task.description_md) }}
{% else %}

No description yet.

{% endif %}
Edit description
{{ csrf_field() }} {{ editor("description_md", d.description_md or task.description_md, task.ref, label="Description", focus=edit == "description") }}
{% if resolution_by %}by @{{ resolution_by.actor.handle }} ยท {{ resolution_by.created_at | day }}{% endif %} {% if resolution_versions %}{{ resolution_versions }} version{{ "s" if resolution_versions != 1 }}{% else %}History{% endif %}
{% set fields = resolution_fields(task.resolution_md) %} {% if fields %}
{% for label, value in fields %}
{{ label }}
{{ md(value) }}
{% endfor %}
{% elif task.resolution_md %}
{{ md(task.resolution_md) }}
{% else %}

No resolution yet.

{% endif %}
{% if resolve %}Write the resolution to move this task{% else %}Edit resolution{% endif %}
{{ csrf_field() }} {% if resolve %}

This column needs a resolution; saving moves the task.

{% endif %} {{ editor("resolution_md", d.resolution_md or task.resolution_md or RESOLUTION_TEMPLATE, task.ref, label="Resolution") }}
{{ comments | length }}
{{ parts.thread() }}
{{ csrf_field() }} {% call editor("body_md", d.body_md or "", task.ref, 4, "New comment", write="Write") %} {% if question %}{% endif %} {% endcall %}
{{ parts.poller() }}