annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
8b5615a1bf3d articles, input: use new embedding mechanism in articles + new macros to build forms and inputs
Goffi <goffi@goffi.org>
parents: 8
diff changeset
1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
49
f19e9f5e43b0 blog: moved items rendering to a macro + handle new date filter + handle identities
Goffi <goffi@goffi.org>
parents: 43
diff changeset
2 {% set dates_format='relative' %}
f19e9f5e43b0 blog: moved items rendering to a macro + handle new date filter + handle identities
Goffi <goffi@goffi.org>
parents: 43
diff changeset
3 {% import 'blog/macros.html' as blog with context %}
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
4
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
5 {% block body %}
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
6 <div id="blog_items">
49
f19e9f5e43b0 blog: moved items rendering to a macro + handle new date filter + handle identities
Goffi <goffi@goffi.org>
parents: 43
diff changeset
7 {{ blog.show_items(items) }}
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
8 </div>
93
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
9 <nav class="bottom_links">
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
10 <ul>
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
11 {% if newer_url is defined %}
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
12 <li class="newer_items">
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
13 <a href="{{newer_url}}">
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
14 <img src="{{media_path}}icons/tango/actions/32/go-previous.png">
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
15 {% trans %}newer articles{% endtrans %}
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
16 </a>
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
17 </li>
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
18 {% endif %}
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
19 {% if older_url is defined %}
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
20 <li class="older_items">
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
21 <a href="{{older_url}}">
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
22 <img src="{{media_path}}icons/tango/actions/32/go-next.png">
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
23 {% trans %}older articles{% endtrans %}
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
24 </a>
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
25 </li>
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
26 {% endif %}
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
27 </ul>
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 49
diff changeset
28 </nav>
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
29 {% endblock body %}