{% load i18n wagtailadmin_tags %} {% if states %} {% trans "Awaiting your review" as heading %} {% panel id="awaiting-review" heading=heading %} {% for state in states %} {% with revision=state.task_state.revision obj=state.obj task_state=state.task_state actions=state.actions workflow_tasks=state.workflow_tasks %} {% is_page obj as is_page %} {% if is_page %} {% page_permissions obj as page_perms %} {% endif %} {% endwith %} {% endfor %}
{% trans "Title" %} {% trans "Tasks" %} {% trans "Task submitted by" %} {% 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 actions %}
    {% for action_name, action_label, modal in actions %}
  • {% endfor %} {% if page_perms.can_edit or not is_page and edit_url %}
  • {% trans 'Edit' %}
  • {% endif %} {% if obj.is_previewable %}
  • {% trans 'Preview' %}
  • {% endif %}
{% endif %}
{% for task in workflow_tasks %} {% if task.status == 'approved' %} {% icon "success" title=task.status_display classname="default" %} {% elif task.status == 'rejected' %} {% icon "error" title=task.status_display classname="default" %} {% else %} {% icon "radio-empty" title=status_display classname="default" %} {% endif %} {% endfor %} {% if revision.user %}{{ revision.user|user_display_name }}{% endif %} {% human_readable_date task_state.started_at %}
{% endpanel %} {% endif %}