kopia lustrzana https://github.com/wagtail/wagtail
Refactor templates to remove unneeded aspects of _list_explore template, and simplify the process of adding extra columns and data for custom report views
rodzic
cbe3058794
commit
423165b7c0
|
@ -29,7 +29,7 @@
|
|||
<div class="nice-padding">
|
||||
{% if pages %}
|
||||
{% block listing %}
|
||||
{% include "wagtailadmin/pages/listing/_list_explore.html" %}
|
||||
{% include "wagtailadmin/reports/listing/_list_report.html" %}
|
||||
{% endblock %}
|
||||
{% paginate pages base_url=request.path %}
|
||||
{% else %}
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
{% extends "wagtailadmin/pages/listing/_list.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
{% block post_parent_page_headers %}
|
||||
<tr class="table-headers">
|
||||
<th class="title">
|
||||
{% trans 'Title' %}
|
||||
</th>
|
||||
<th class="updated">
|
||||
{% trans 'Updated' %}
|
||||
</th>
|
||||
<th class="type">
|
||||
{% trans 'Type' %}
|
||||
</th>
|
||||
<th class="status">
|
||||
{% trans 'Status' %}
|
||||
</th>
|
||||
{% block extra_columns %}
|
||||
{% endblock %}
|
||||
</tr>
|
||||
{% endblock %}
|
||||
|
||||
{% block page_title %}
|
||||
{% include "wagtailadmin/pages/listing/_page_title_explore.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block page_navigation %}
|
||||
{% block extra_page_data %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
{% block no_results %}
|
||||
<p>{% trans "No pages found." %}</p>
|
||||
{% endblock %}
|
|
@ -1,10 +1,16 @@
|
|||
{% extends "wagtailadmin/pages/listing/_list_explore.html" %}
|
||||
{% extends "wagtailadmin/reports/listing/_list_report.html" %}
|
||||
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
|
||||
{% block extra_columns %}
|
||||
|
||||
{% block page_navigation %}
|
||||
<td>
|
||||
<th>{% trans 'Locking status' %}</th>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block extra_page_data%}
|
||||
<td valign="top">
|
||||
{% page_permissions page as perms %}
|
||||
<p>
|
||||
{% if page.locked_at %}
|
||||
|
|
Ładowanie…
Reference in New Issue