|
@@ -9,35 +9,37 @@
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
{% block content %}
|
|
-<div class="page-header">
|
|
|
|
|
|
+<div{% if category.css %} class="page-{{ category.css_class }}"{% endif %}>
|
|
|
|
+ <div class="page-header">
|
|
|
|
+ <div class="container">
|
|
|
|
+ {% if path %}
|
|
|
|
+ <ol class="breadcrumb">
|
|
|
|
+ {% for crumb in path|slice:":-1" %}
|
|
|
|
+ <li>
|
|
|
|
+ <a href="{{ crumb.get_absolute_url }}">{{ crumb.name }}</a>{% if not forloop.last %}<span class="fa fa-chevron-right"></span>{% endif %}
|
|
|
|
+ </li>
|
|
|
|
+ {% endfor %}
|
|
|
|
+ </ol>
|
|
|
|
+ {% endif %}
|
|
|
|
+
|
|
|
|
+ <h1>{{ category.name }}</h1>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<div class="container">
|
|
<div class="container">
|
|
- {% if path %}
|
|
|
|
- <ol class="breadcrumb">
|
|
|
|
- {% for crumb in path|slice:":-1" %}
|
|
|
|
- <li>
|
|
|
|
- <a href="{{ crumb.get_absolute_url }}">{{ crumb.name }}</a>{% if not forloop.last %}<span class="fa fa-chevron-right"></span>{% endif %}
|
|
|
|
- </li>
|
|
|
|
- {% endfor %}
|
|
|
|
- </ol>
|
|
|
|
|
|
+ {% if category.description %}
|
|
|
|
+ <div class="lead">
|
|
|
|
+ {{ category.description|escape|urlize|linebreaks }}
|
|
|
|
+ </div>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
|
|
- <h1>{{ category.name }}</h1>
|
|
|
|
- </div>
|
|
|
|
-</div>
|
|
|
|
-<div class="container">
|
|
|
|
- {% if category.description %}
|
|
|
|
- <div class="lead">
|
|
|
|
- {{ category.description|escape|urlize|linebreaks }}
|
|
|
|
|
|
+ {% if forums %}
|
|
|
|
+ {% include "misago/forums/subforums.html" category=category %}
|
|
|
|
+ {% else %}
|
|
|
|
+ <p class="lead">
|
|
|
|
+ {% trans "No forums are set in this category or you don't have permission to see them." %}
|
|
|
|
+ </p>
|
|
|
|
+ {% endif %}
|
|
</div>
|
|
</div>
|
|
- {% endif %}
|
|
|
|
-
|
|
|
|
- {% if forums %}
|
|
|
|
- {% include "misago/forums/subforums.html" %}
|
|
|
|
- {% else %}
|
|
|
|
- <p class="lead">
|
|
|
|
- {% trans "No forums are set in this category or you don't have permission to see them." %}
|
|
|
|
- </p>
|
|
|
|
- {% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|
|
{% endblock content %}
|
|
|
|
|