/
page-list.html
44 lines (37 loc) · 1.18 KB
/
page-list.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends "wrapper.html" %}
{% block content %}
<h2>Page List</h2>
{% include 'section-filter.fhtml' %}
<p>There {{ pages|length|pluralize:"is,are" }} {{ more|yesno:"more than," }} {{ page_count|escape }} page{{ pages|length|pluralize }}{% if section %} in '<strong>{{ section.path|escape }}</strong>'{% endif %}.</p>
<table class="list striped">
<thead>
<tr>
<th class="thin">Edit</th>
<th>Section / Name</th>
<th>Title</th>
<th class="thin">Delete</th>
</tr>
</thead>
<tbody>
{% for page in pages %}
<tr>
<td class="c">
<a href="edit.html?key={{ page.key|urlencode }}"><img title="Edit Page" src="/s/i/layout_edit.png" /></a>
</td>
<td>
<strong>{{ page.section.path|escape }}</strong>{{ page.name|escape }}
</td>
<td>
<a href="edit.html?key={{ page.key|urlencode }}">{{ page.title|escape }}</a>
</td>
<td class="c">
<a href="/admin/page/del.html?key={{ page.key|urlencode }}"><img title="Delete Page" src="/s/i/cancel.png" /></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% if more %}
<p><a href="/todo.html">Older »</p></p>
{% endif %}
{% endblock %}