diff --git a/wagtail/admin/templates/wagtailadmin/home/user_objects_in_workflow_moderation.html b/wagtail/admin/templates/wagtailadmin/home/user_objects_in_workflow_moderation.html index 6b1371033e..98fd9f8b61 100644 --- a/wagtail/admin/templates/wagtailadmin/home/user_objects_in_workflow_moderation.html +++ b/wagtail/admin/templates/wagtailadmin/home/user_objects_in_workflow_moderation.html @@ -2,8 +2,8 @@ {% load i18n wagtailadmin_tags %} {% if workflow_states %} - {% trans "Your pages in a workflow" as heading %} - {% panel id="pages-in-workflow" heading=heading %} + {% trans "Your pages and snippets in a workflow" as heading %} + {% panel id="objects-in-workflow" heading=heading %}
- {% if page_perms.can_edit %}
- {{ workflow_state.content_object.specific_deferred.get_admin_display_title }}
+ {% admin_edit_url obj as edit_url %}
+ {% if page_perms.can_edit or not is_page and edit_url %}
+ {% latest_str obj %}
{% else %}
- {{ workflow_state.content_object.specific_deferred.get_admin_display_title }}
+ {% latest_str obj %}
{% endif %}
{% i18n_enabled as show_locale_labels %}
- {% if show_locale_labels and workflow_state.content_object.locale_id %}
- {% locale_label_from_id workflow_state.content_object.locale_id as locale_label %}
+ {% if show_locale_labels and obj.locale_id %}
+ {% locale_label_from_id obj.locale_id as locale_label %}
{{ locale_label }}
{% endif %}
- {% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=workflow_state.content_object %}
- {% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=workflow_state.content_object %}
+ {% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=obj %}
+ {% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=obj %}
|