Mercurial > libervia-website
comparison templates/default/news/news.html @ 11:87262027cbf5
news: use pagination and search box as in Libervia Web's blog
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 23 Apr 2021 11:04:36 +0200 |
parents | dc880664a8ec |
children |
comparison
equal
deleted
inserted
replaced
10:0e9e97777fe0 | 11:87262027cbf5 |
---|---|
1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} | 1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} |
2 {% import 'blog/macros.html' as blog with context %} | 2 {% import 'blog/macros.html' as blog with context %} |
3 {% import 'input/navigation.html' as navigation with context %} | |
4 {% import 'input/textbox.html' as textbox with context %} | |
3 | 5 |
4 {% block body %} | 6 {% block body %} |
5 <h1 class="title has-text-centered">{% trans %}Libervia News{% endtrans %}</h1> | 7 <h1 class="title has-text-centered">{% trans %}Libervia News{% endtrans %}</h1> |
6 <div id="blog_items"> | 8 {% if blog_items['items'] %} |
7 {{ blog.show_items(blog_items['items']) }} | 9 <div class="container mt-4"> |
8 </div> | 10 <nav class="level mb-4"> |
11 <div class="level-left"> | |
12 </div> | |
13 <div class="level-right"> | |
14 <div class="level-item"> | |
15 {{ textbox.search() }} | |
16 </div> | |
17 </div> | |
18 </nav> | |
19 <div id="blog_items" class="columns"> | |
20 <div class="column"> | |
21 {{ blog.show_items(blog_items['items'], expanded=single) }} | |
22 </div> | |
23 </div> | |
24 </div> | |
25 {% else %} | |
26 <div class="message mt-4"> | |
27 <div class="message-body"> | |
28 {% trans %}No articles found in this blog!{% endtrans %} | |
29 </div> | |
30 </div> | |
31 {% endif %} | |
32 | |
33 {{ navigation.prev_next(_("newer articles"), _("older articles")) }} | |
9 {% endblock body %} | 34 {% endblock body %} |