0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Add locale label to workflow/workflow tasks reports

This commit is contained in:
Dan Braghis 2022-01-10 17:51:18 +00:00
parent c545b3f760
commit 1aa1bbf14f
2 changed files with 10 additions and 0 deletions

View File

@ -43,6 +43,11 @@
<a href="{% url 'wagtailadmin_pages:edit' workflow_state.page.id %}">
{{ workflow_state.page.specific_deferred.get_admin_display_title }}
</a>
{% i18n_enabled as show_locale_labels %}
{% if show_locale_labels %}
{% locale_label_from_id workflow_state.page.locale_id as locale_label %}
<span class="status-tag status-tag--label">{{ locale_label }}</span>
{% endif %}
</td>
<td>
<a href="{% url 'wagtailadmin_pages:workflow_history_detail' workflow_state.page.id workflow_state.id %}" class="status-tag primary">

View File

@ -41,6 +41,11 @@
<a href="{% url 'wagtailadmin_pages:edit' page.id %}">
{{ page.specific_deferred.get_admin_display_title }}
</a>
{% i18n_enabled as show_locale_labels %}
{% if show_locale_labels %}
{% locale_label_from_id page.locale_id as locale_label %}
<span class="status-tag status-tag--label">{{ locale_label }}</span>
{% endif %}
{% endwith %}
</td>
<td>