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:
parent
c545b3f760
commit
1aa1bbf14f
@ -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">
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user