# HG changeset patch # User Goffi # Date 1619168676 -7200 # Node ID 87262027cbf5d235cc9e4ff332ec8506864ffe6d # Parent 0e9e97777fe02fafdf3c7ee691b52b2c9bf0b00e news: use pagination and search box as in Libervia Web's blog diff -r 0e9e97777fe0 -r 87262027cbf5 templates/default/news/news.html --- a/templates/default/news/news.html Fri Apr 23 11:04:23 2021 +0200 +++ b/templates/default/news/news.html Fri Apr 23 11:04:36 2021 +0200 @@ -1,9 +1,34 @@ {% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% import 'blog/macros.html' as blog with context %} +{% import 'input/navigation.html' as navigation with context %} +{% import 'input/textbox.html' as textbox with context %} {% block body %}

{% trans %}Libervia News{% endtrans %}

-
- {{ blog.show_items(blog_items['items']) }} -
+{% if blog_items['items'] %} +
+ +
+
+ {{ blog.show_items(blog_items['items'], expanded=single) }} +
+
+
+{% else %} +
+
+ {% trans %}No articles found in this blog!{% endtrans %} +
+
+{% endif %} + +{{ navigation.prev_next(_("newer articles"), _("older articles")) }} {% endblock body %}