From 3eb049036e601c1978cf5f7f0d5be8c577933b72 Mon Sep 17 00:00:00 2001 From: NumEricR Date: Tue, 27 Aug 2013 16:02:25 +0200 Subject: Add warning message when there is no entry in current view --- tpl/home.twig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tpl') diff --git a/tpl/home.twig b/tpl/home.twig index 6b80c6ed..f51c34f2 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -19,7 +19,10 @@ {% endblock %} {% block content %} {{ page_links | raw }} - {% for entry in entries %} + {% if entries is empty %} +

{% trans "No link available here!" %}

+ {% else %} + {% for entry in entries %}

{{ entry.title|raw }}

- {% endfor %} + {% endfor %} + {% endif %} {{ page_links | raw }} {% endblock %} \ No newline at end of file -- cgit v1.2.3