Mercurial > piecrust2
comparison foodtruck/templates/list_source.html @ 657:c1a94e1beb9d
admin: Show a more classic blog post listing in FoodTruck.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 25 Feb 2016 22:30:16 -0800 |
parents | c2708f20a87b |
children |
comparison
equal
deleted
inserted
replaced
656:dba53f0f7671 | 657:c1a94e1beb9d |
---|---|
1 {% extends 'layouts/default.html' %} | 1 {% extends 'layouts/default.html' %} |
2 | 2 |
3 {% block content %} | 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 | |
4 <div class="row"> | 27 <div class="row"> |
5 <div class="col-md-12"> | |
6 {% for p in pages %} | |
7 <div> | |
8 <h3><a href="{{p.url}}">{{p.title}}</a></h3> | |
9 <p>{{p.text}}</p> | |
10 </div> | |
11 {% endfor %} | |
12 </div> | |
13 | |
14 {% if pagination.prev_page or pagination.next_page %} | 28 {% if pagination.prev_page or pagination.next_page %} |
15 <div class="col-sm-6 col-sm-offset-3"> | 29 <div class="col-sm-6 col-sm-offset-3"> |
16 <div class="ft-pagination"> | 30 <div class="ft-pagination"> |
17 {% if pagination.prev_page %} | 31 {% if pagination.prev_page %} |
18 <a href="{{pagination.prev_page}}"><span class="icon ion-chevron-left"></span> prev</a> | 32 <a href="{{pagination.prev_page}}"><span class="icon ion-chevron-left"></span> prev</a> |