kopia lustrzana https://github.com/wagtail/wagtail
Move `pages/workflow_history` templates to `shared`
rodzic
4db3ef23d6
commit
711d592052
|
@ -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 {
|
||||
|
|
|
@ -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 %}
|
||||
|
|
@ -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 %}
|
|
@ -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,
|
||||
|
|
Ładowanie…
Reference in New Issue