Browse Source

Empty category page.

Ralfp 12 years ago
parent
commit
e799d9fad8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      templates/sora/category.html

+ 4 - 0
templates/sora/category.html

@@ -19,9 +19,13 @@
   </ul>
   </ul>
   <h1>{{ category.name }}{% if category.description %} <small>{{ category.description }}</small>{% endif %}</h1>
   <h1>{{ category.name }}{% if category.description %} <small>{{ category.description }}</small>{% endif %}</h1>
 </div>
 </div>
+{% if category.subforums %}
 <div class="forums-list">
 <div class="forums-list">
   <div class="category{% if category.style %} {{ category.style }}{% endif %}">
   <div class="category{% if category.style %} {{ category.style }}{% endif %}">
     {{ macros.draw_forums(category, 12) }}
     {{ macros.draw_forums(category, 12) }}
   </div>
   </div>
 </div>
 </div>
+{% else %}
+<p class="lead">{% trans %}Looks like there are no forums to display in this category.{% endtrans %}</p>
+{% endif %}
 {% endblock %}
 {% endblock %}