{% load i18n wagtailadmin_tags %} {% if workflow_states %} {% trans "Your pages and snippets in a workflow" as heading %} {% panel id="objects-in-workflow" heading=heading %} {% for workflow_state in workflow_states %} {% with obj=workflow_state.content_object %} {% is_page obj as is_page %} {% if is_page %} {% page_permissions obj as page_perms %} {% endif %} {% endwith %} {% endfor %}
{% trans "Title" %} {% trans "Task" %} {% trans "Task started" %}
{% admin_edit_url obj as edit_url %} {% if page_perms.can_edit or not is_page and edit_url %} {% latest_str obj %} {% else %} {% latest_str obj %} {% endif %} {% i18n_enabled as show_locale_labels %} {% if show_locale_labels and obj.locale_id %} {% locale_label_from_id obj.locale_id as locale_label %} {% status locale_label classname="status-tag--label" %} {% endif %} {% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=obj %} {% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=obj %}
{% if workflow_state.current_task_state.status == 'rejected' %} {% icon name="warning" classname="default" %} {% trans "Changes requested at" %} {% elif workflow_state.current_task_state.status == 'in_progress' %} {% trans "Awaiting" %} {% endif %} {{ workflow_state.current_task_state.task.name }} {% human_readable_date workflow_state.current_task_state.started_at %}
{% endpanel %} {% endif %}