{# Vertical timeline of workflow events on a record form. #} {% if workflow_context and workflow_context.has_workflow %}

Workflow history

{% if workflow_context.get('timeline') %}
    {% for ev in workflow_context.timeline %}
  1. {% if ev.at_display %} {% endif %} {% if ev.pending %} Pending {% endif %}

    {{ ev.title }}

    {% if ev.author %}

    {{ ev.author }}

    {% endif %} {% if ev.body %}

    {{ ev.body }}

    {% endif %}
  2. {% endfor %}
{% else %}

{% if workflow_context.started %} No workflow events logged yet. {% else %} History appears after the workflow starts on this record. {% endif %}

{% endif %}
{% endif %}