# HG changeset patch # User Goffi <goffi@goffi.org> # Date 1522132354 -7200 # Node ID efbf5423d7beedae1392a1c67ceb9fdfb991b760 # Parent 4eda3d0ddb22ec79f20ff912069ae4c8e8fc451b forum(overview): display a message if no forums are available on the server diff -r 4eda3d0ddb22 -r efbf5423d7be default/forum/overview.html --- 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 %}