category.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {% extends "misago/base.html" %}
  2. {% load i18n misago_stringutils %}
  3. {% block title %}{{ category.name }} | {{ block.super }}{% endblock title %}
  4. {% block meta-description %}{{ category.description|striplinebreaks }}{% endblock meta-description %}
  5. {% block content %}
  6. <div{% if category.css %} class="page-{{ category.css_class }}"{% endif %}>
  7. <div class="page-header">
  8. <div class="container">
  9. {% if path %}
  10. <ol class="breadcrumb">
  11. {% for crumb in path|slice:":-1" %}
  12. <li>
  13. <a href="{{ crumb.get_absolute_url }}">{{ crumb.name }}</a>{% if not forloop.last %}<span class="fa fa-chevron-right"></span>{% endif %}
  14. </li>
  15. {% endfor %}
  16. </ol>
  17. {% endif %}
  18. <h1>{{ category.name }}</h1>
  19. </div>
  20. </div>
  21. <div class="container">
  22. {% if category.description %}
  23. <div class="lead">
  24. {{ category.description|escape|urlize|linebreaks }}
  25. </div>
  26. {% endif %}
  27. {% if forums %}
  28. {% include "misago/forums/subforums.html" with category=category %}
  29. {% else %}
  30. <p class="lead">
  31. {% trans "No forums are set in this category or you don't have permission to see them." %}
  32. </p>
  33. {% endif %}
  34. </div>
  35. </div>
  36. {% endblock content %}
  37. {% block javascripts %}
  38. {{ block.super }}
  39. {% include "misago/forums/js.html" %}
  40. {% endblock javascripts %}