forum.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {% extends "misago/threads/base.html" %}
  2. {% load i18n misago_stringutils %}
  3. {% block title %}{{ forum.name }}{% if page.number > 1 %} ({% blocktrans with page=page.number %}Page {{ page }}{% endblocktrans %}){% endif %} | {{ block.super }}{% endblock title %}
  4. {% block meta-description %}{{ forum.description|striplinebreaks }}{% endblock meta-description %}
  5. {% block content %}
  6. <div{% if forum.css %} class="page-{{ forum.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>{{ forum.name }}</h1>
  19. </div>
  20. </div>
  21. {{ block.super }}
  22. {% endblock content %}
  23. {% block threads-list %}
  24. {% if forum.description %}
  25. <div class="lead">
  26. {{ forum.description|escape|urlize|linebreaks }}
  27. </div>
  28. {% endif %}
  29. {% if forum.subforums %}
  30. {% include "misago/forums/subforums.html" with category=forum %}
  31. {% endif %}
  32. {{ block.super }}
  33. {% endblock threads-list %}
  34. {% block threads-panel %}
  35. <div class="table-actions">
  36. {% include "misago/threads/paginator.html" %}
  37. {% if user.is_authenticated %}
  38. {% include "misago/threads/sort.html" %}
  39. {% include "misago/threads/show.html" %}
  40. {% endif %}
  41. {% include "misago/threads/reply_btn.html" %}
  42. </div>
  43. {{ block.super }}
  44. <div class="table-actions">
  45. {% include "misago/threads/paginator.html" %}
  46. {% include "misago/threads/reply_btn.html" %}
  47. </div>
  48. {% endblock threads-panel %}
  49. {% block javascripts %}
  50. {{ block.super }}
  51. {% include "misago/forums/js.html" %}
  52. {% endblock javascripts %}