Move `pages/workflow_history` templates to `shared`

pull/9817/head
Sage Abdullah 2022-12-23 15:14:50 +00:00
rodzic 4db3ef23d6
commit 711d592052
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
6 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
/*
* Styling for the workflow progress view
* See: wagtail/wagtail/admin/templates/wagtailadmin/pages/workflow_history/detail.html
* See: wagtail/wagtail/admin/templates/wagtailadmin/shared/workflow_history/detail.html
*/
.workflow-progress-table {

Wyświetl plik

@ -12,7 +12,7 @@
<a href="{% url 'wagtailadmin_pages:edit' page.id %}" class="button button-small button-secondary">{% trans "Edit page" %}</a>
</p>
{% include "wagtailadmin/pages/workflow_history/results.html" %}
{% include "wagtailadmin/shared/workflow_history/results.html" %}
</div>
{% endblock %}

Wyświetl plik

@ -1,7 +1,7 @@
{% load i18n wagtailadmin_tags %}
{% if workflow_states %}
{% include "wagtailadmin/pages/workflow_history/list.html" %}
{% include "wagtailadmin/shared/workflow_history/list.html" %}
{% include "wagtailadmin/shared/pagination_nav.html" with items=workflow_states linkurl="wagtailadmin_pages:workflow_history" %}
{% else %}

Wyświetl plik

@ -67,7 +67,7 @@ def workflow_history(request, page_id):
return TemplateResponse(
request,
"wagtailadmin/pages/workflow_history/index.html",
"wagtailadmin/shared/workflow_history/index.html",
{
"page": page,
"workflow_states": workflow_states,
@ -176,7 +176,7 @@ def workflow_history_detail(request, page_id, workflow_state_id):
return TemplateResponse(
request,
"wagtailadmin/pages/workflow_history/detail.html",
"wagtailadmin/shared/workflow_history/detail.html",
{
"page": page,
"workflow_state": workflow_state,