changeset 137:efbf5423d7be

forum(overview): display a message if no forums are available on the server
author Goffi <goffi@goffi.org>
date Tue, 27 Mar 2018 08:32:34 +0200
parents 4eda3d0ddb22
children 85877c76d47d
files default/forum/overview.html
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/default/forum/overview.html	Tue Mar 27 08:30:07 2018 +0200
+++ b/default/forum/overview.html	Tue Mar 27 08:32:34 2018 +0200
@@ -24,7 +24,11 @@
 {% endmacro %}
 
 {% block body %}
-<div id="forums">
-    {{ generate_forums(forums) }}
-</div>
+{% if not forums %}
+    <p class="message--info">{% trans %}No forums found on this server!{% endtrans %}</p>
+{% else %}
+    <div id="forums">
+        {{ generate_forums(forums) }}
+    </div>
+{% endif %}
 {% endblock body %}