Add locale label to workflow/workflow tasks reports

pull/7839/head
Dan Braghis 2022-01-10 17:51:18 +00:00
rodzic c545b3f760
commit 1aa1bbf14f
2 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -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">

Wyświetl plik

@ -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>