Mercurial > libervia-templates
comparison default/blog/articles.html @ 132:c70f405f9b86
blog (articles): show a message when no article is found
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 26 Mar 2018 08:13:53 +0200 |
parents | 5d9e2270ceb4 |
children |
comparison
equal
deleted
inserted
replaced
131:c3f50951f2cc | 132:c70f405f9b86 |
---|---|
14 not sure what's the best way to avoid that, so just using C.APP_NAME for now #} | 14 not sure what's the best way to avoid that, so just using C.APP_NAME for now #} |
15 {%- endif -%} | 15 {%- endif -%} |
16 {%- endblock title -%} | 16 {%- endblock title -%} |
17 | 17 |
18 {% block body %} | 18 {% block body %} |
19 <div id="blog_items"> | 19 {% if items %} |
20 {{ blog.show_items(items, expanded=single) }} | 20 <div id="blog_items"> |
21 </div> | 21 {{ blog.show_items(items, expanded=single) }} |
22 </div> | |
23 {% else %} | |
24 <p class="message--info">{% trans %}No articles found in this blog!{% endtrans %}</p> | |
25 {% endif %} | |
22 | 26 |
23 {{ navigation.prev_next(_("newer articles"), _("older articles")) }} | 27 {{ navigation.prev_next(_("newer articles"), _("older articles")) }} |
24 {% endblock body %} | 28 {% endblock body %} |