{% load i18n wagtailadmin_tags %} {% if workflow_states %}

{% trans 'Your pages in a workflow' %}

{# Note: the header is visually hidden behind .title-wrapper #} {% for workflow_state in workflow_states %} {% with workflow_state.current_task_state.page_revision as revision %} {% page_permissions workflow_state.page as page_perms %} {% endwith %} {% endfor %}
{% trans "Title" %} {% trans "Task" %} {% trans "Task started" %}
{% if page_perms.can_edit %} {{ workflow_state.page.specific_deferred.get_admin_display_title }} {% else %} {{ workflow_state.page.specific_deferred.get_admin_display_title }} {% endif %} {% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=workflow_state.page %} {% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=workflow_state.page %}
{% if workflow_state.current_task_state.status == 'rejected' %} {% icon name="warning" class_name="default" %} {% trans "Changes requested at" %} {% elif workflow_state.current_task_state.status == 'in_progress' %} {% trans "Awaiting" %} {% endif %} {{ workflow_state.current_task_state.task.name }}
{% blocktrans with time_period=workflow_state.current_task_state.started_at|timesince_simple %}{{ time_period }}{% endblocktrans %}
{% endif %}