comparison default/blog/articles.html @ 93:650f3456f80d

blog/articles: added simple pagination
author Goffi <goffi@goffi.org>
date Fri, 12 Jan 2018 22:05:32 +0100
parents f19e9f5e43b0
children e4ffb56efd4e
comparison
equal deleted inserted replaced
92:2963996373fa 93:650f3456f80d
4 4
5 {% block body %} 5 {% block body %}
6 <div id="blog_items"> 6 <div id="blog_items">
7 {{ blog.show_items(items) }} 7 {{ blog.show_items(items) }}
8 </div> 8 </div>
9 <nav class="bottom_links">
10 <ul>
11 {% if newer_url is defined %}
12 <li class="newer_items">
13 <a href="{{newer_url}}">
14 <img src="{{media_path}}icons/tango/actions/32/go-previous.png">
15 {% trans %}newer articles{% endtrans %}
16 </a>
17 </li>
18 {% endif %}
19 {% if older_url is defined %}
20 <li class="older_items">
21 <a href="{{older_url}}">
22 <img src="{{media_path}}icons/tango/actions/32/go-next.png">
23 {% trans %}older articles{% endtrans %}
24 </a>
25 </li>
26 {% endif %}
27 </ul>
28 </nav>
9 {% endblock body %} 29 {% endblock body %}