Mercurial > piecrust2
comparison foodtruck/templates/list_source.html @ 620:c2708f20a87b
admin: Make the sidebar togglable for smaller screens.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 06 Feb 2016 21:49:50 -0800 |
parents | 2713b54b5d76 |
children | c1a94e1beb9d |
comparison
equal
deleted
inserted
replaced
619:200c7063affa | 620:c2708f20a87b |
---|---|
1 {% extends 'layouts/default.html' %} | 1 {% extends 'layouts/default.html' %} |
2 | 2 |
3 {% block content %} | 3 {% block content %} |
4 <div class="container"> | 4 <div class="row"> |
5 <div class="row"> | 5 <div class="col-md-12"> |
6 <div class="col-xs-12"> | 6 {% for p in pages %} |
7 {% for p in pages %} | 7 <div> |
8 <div> | 8 <h3><a href="{{p.url}}">{{p.title}}</a></h3> |
9 <h3><a href="{{p.url}}">{{p.title}}</a></h3> | 9 <p>{{p.text}}</p> |
10 <p>{{p.text}}</p> | 10 </div> |
11 </div> | 11 {% endfor %} |
12 </div> | |
13 | |
14 {% if pagination.prev_page or pagination.next_page %} | |
15 <div class="col-sm-6 col-sm-offset-3"> | |
16 <div class="ft-pagination"> | |
17 {% if pagination.prev_page %} | |
18 <a href="{{pagination.prev_page}}"><span class="icon ion-chevron-left"></span> prev</a> | |
19 {% else %} | |
20 <span class="icon ion-chevron-left"></span> prev | |
21 {% endif %} | |
22 | |
23 {% for p in pagination.nums %} | |
24 {% if p.url %}<a href="{{p.url}}" class="ft-pagination-a">{{p.num}}</a>{% else %}<span class="ft-pagination-a">{{p.num}}</span>{% endif %} | |
12 {% endfor %} | 25 {% endfor %} |
26 | |
27 {% if pagination.next_page %} | |
28 <a href="{{pagination.next_page}}">next <span class="icon ion-chevron-right"></span></a> | |
29 {% else %} | |
30 next <span class="icon ion-chevron-right"></span> | |
31 {% endif %} | |
13 </div> | 32 </div> |
14 | |
15 {% if pagination.prev_page or pagination.next_page %} | |
16 <div class="col-sm-6 col-sm-offset-3"> | |
17 <div class="ft-pagination"> | |
18 {% if pagination.prev_page %} | |
19 <a href="{{pagination.prev_page}}"><span class="icon ion-chevron-left"></span> prev</a> | |
20 {% else %} | |
21 <span class="icon ion-chevron-left"></span> prev | |
22 {% endif %} | |
23 | |
24 {% for p in pagination.nums %} | |
25 {% if p.url %}<a href="{{p.url}}" class="ft-pagination-a">{{p.num}}</a>{% else %}<span class="ft-pagination-a">{{p.num}}</span>{% endif %} | |
26 {% endfor %} | |
27 | |
28 {% if pagination.next_page %} | |
29 <a href="{{pagination.next_page}}">next <span class="icon ion-chevron-right"></span></a> | |
30 {% else %} | |
31 next <span class="icon ion-chevron-right"></span> | |
32 {% endif %} | |
33 </div> | |
34 </div> | |
35 {% endif %} | |
36 </div> | 33 </div> |
34 {% endif %} | |
37 </div> | 35 </div> |
38 | 36 |
39 {% endblock %} | 37 {% endblock %} |
40 | 38 |
41 | 39 |