{% load i18n wagtailadmin_tags %} {% if states %} {% panel id="awaiting-review" heading=_("Awaiting your review") classname="w-panel--dashboard" %} {% 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 "Language" %} {% trans "Privacy and access" %} {% 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="w-status--label" %} {% endif %} {% if is_page %} {% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=obj %} {% endif %} {% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=obj %} {% 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 %} {% if actions %} {% endif %}
{% endpanel %} {% endif %}