comparison piecrust/admin/templates/list_source.html @ 778:5e91bc0e3b4d

internal: Move admin panel code into the piecrust package.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 16 Jul 2016 15:02:24 +0200
parents foodtruck/templates/list_source.html@c1a94e1beb9d
children dcdec4b951a1
comparison
equal deleted inserted replaced
777:8d633ca59bc5 778:5e91bc0e3b4d
1 {% extends 'layouts/default.html' %}
2
3 {% block content %}
4 <table class="table">
5 <thead>
6 <tr>
7 <th>When</th>
8 <th>Title</th>
9 <th>Who</th>
10 <th>Category</th>
11 <th>Tags</th>
12 </tr>
13 </thead>
14 <tbody>
15 {% for p in pages %}
16 <tr>
17 <td><time class="timeago" datetime="{{p.timestamp|iso8601}}">{{p.timestamp|datetime}}</time></td>
18 <td><a href="{{p.url}}">{{p.title}}</a></td>
19 <td>{{p.author}}</td>
20 <td>{{p.category}}</td>
21 <td>{{p.tags|join(', ')}}</td>
22 </tr>
23 {% endfor %}
24 </tbody>
25 </table>
26
27 <div class="row">
28 {% if pagination.prev_page or pagination.next_page %}
29 <div class="col-sm-6 col-sm-offset-3">
30 <div class="ft-pagination">
31 {% if pagination.prev_page %}
32 <a href="{{pagination.prev_page}}"><span class="icon ion-chevron-left"></span> prev</a>
33 {% else %}
34 <span class="icon ion-chevron-left"></span> prev
35 {% endif %}
36
37 {% for p in pagination.nums %}
38 {% if p.url %}<a href="{{p.url}}" class="ft-pagination-a">{{p.num}}</a>{% else %}<span class="ft-pagination-a">{{p.num}}</span>{% endif %}
39 {% endfor %}
40
41 {% if pagination.next_page %}
42 <a href="{{pagination.next_page}}">next <span class="icon ion-chevron-right"></span></a>
43 {% else %}
44 next <span class="icon ion-chevron-right"></span>
45 {% endif %}
46 </div>
47 </div>
48 {% endif %}
49 </div>
50
51 {% endblock %}
52
53