category.html 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. {% extends "cranefly/layout.html" %}
  2. {% load i18n %}
  3. {% load url from future %}
  4. {% import "cranefly/macros.html" as macros with context %}
  5. {% block breadcrumb %}{{ super() }} <span class="divider">/</span></li>
  6. {% for parent in parents %}
  7. <li><a href="{{ parent.type|url(forum=parent.pk, slug=parent.slug) }}">{{ parent.name }}</a> <span class="divider">/</span></li>
  8. {% endfor %}
  9. <li class="active">{{ category.name }}
  10. {%- endblock %}
  11. {% block title %}{{ macros.page_title(title=category.name) }}{% endblock %}
  12. {% block content %}
  13. <div class="page-header">
  14. <ul class="breadcrumb">
  15. {{ self.breadcrumb() }}</li>
  16. </ul>
  17. <h1>{{ category.name }}{% if category.description %}<br><small>{{ category.description }}</small>{% endif %}</h1>
  18. </div>
  19. {% if category.subforums %}
  20. <div class="forums-list">
  21. <div class="category{% if category.style %} {{ category.style }}{% endif %}">
  22. {{ macros.draw_forums(category, 12) }}
  23. </div>
  24. </div>
  25. {% else %}
  26. <p class="lead">{% trans %}Looks like there are no forums to display in this category.{% endtrans %}</p>
  27. {% endif %}
  28. {% endblock %}