comparison 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
comparison
equal deleted inserted replaced
136:4eda3d0ddb22 137:efbf5423d7be
22 {% endfor %} 22 {% endfor %}
23 </ul> 23 </ul>
24 {% endmacro %} 24 {% endmacro %}
25 25
26 {% block body %} 26 {% block body %}
27 <div id="forums"> 27 {% if not forums %}
28 {{ generate_forums(forums) }} 28 <p class="message--info">{% trans %}No forums found on this server!{% endtrans %}</p>
29 </div> 29 {% else %}
30 <div id="forums">
31 {{ generate_forums(forums) }}
32 </div>
33 {% endif %}
30 {% endblock body %} 34 {% endblock body %}