Mercurial > libervia-templates
diff default/forum/overview.html @ 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 | b085ede4d9af |
children |
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 %}