{% extends "cranefly/layout.html" %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{{ macros.page_title(title=category.name) }}{% endblock %} {% block breadcrumb %}{{ super() }} {% for parent in parents %}
  • {{ parent.name }}
  • {% endfor %}
  • {{ category.name }} {%- endblock %} {% block container %}
    {% if category.description %}
    {{ category.description_preparsed|markdown_final|safe }}
    {% endif %} {% if category.subforums %}
    {% for forum in category.subforums %} {% endfor %}

    {{ forum.name }}

    {% if forum.show_details and forum.type != 'redirect' %}
    {% if acl.forums.can_browse(forum) and (acl.threads.can_read_threads(forum) == 2 or (acl.threads.can_read_threads(forum) == 1 and forum.last_poster_id == user.pk)) %} {% if forum.last_thread_id -%} {% trans %}Latest{% endtrans %}: {{ forum.last_thread_name|short_string(30) }} {%- else -%} {% trans %}This forum is empty{% endtrans %} {%- endif %} {%- else -%} {% trans %}This forum is protected{% endtrans %} {%- endif %}
    {% endif %}
    {% if forum.description %}

    {{ forum.description }}

    {% endif %}
    {% if forum.type != 'redirect' %} {% trans %}Posts{% endtrans %}: {{ forum.posts|intcomma }} {% trans %}Threads{% endtrans %}: {{ forum.threads|intcomma }} {% else %} {% trans %}Clicks{% endtrans %}: {{ forum.redirects|intcomma }} {% endif %}
    {% else %}

    {% trans %}Looks like there are no forums to display in this category.{% endtrans %}

    {% endif %}
    {% endblock %} {% block javascripts -%}{{ super() }} {%- endblock %}