{% extends 'punkweb_bb/base.html' %} {% load static humanize_int can_post styled_username %} {% block title_prefix %}{{subcategory.name}} | {% endblock%} {% block og_title_prefix %}{{subcategory.name}} | {% endblock %} {% block extra_head %} {% endblock %} {% block content %}

{{subcategory.name}}

{% if perms.punkweb_bb.change_subcategory or perms.punkweb_bb.delete_subcategory %}
{% if perms.punkweb_bb.change_subcategory %} edit {% endif %} {% if perms.punkweb_bb.delete_subcategory %} delete {% endif %}
{% endif %}
{% if subcategory|can_post:request.user %} Create Thread {% else %} {% endif %}
{% if threads|length > 0 %}
{% for thread in threads %} {% endfor %}
Title Posts Views
{{thread.title}} {% if thread.is_pinned %} keep {% endif %} {% if thread.is_closed %} lock {% endif %}
{{thread.user|styled_username}}
{{thread.post_count}} {{thread.view_count | humanize_int}} {% if thread.latest_post %}
{% include 'punkweb_bb/components/profile_image.html' with user=thread.latest_post.user %}
{% else %} No posts {% endif %}
{% else %}

No threads have been created in this subcategory yet.

{% endif %}
{% include 'punkweb_bb/components/pagination_controls.html' with paginator=threads %} {% endblock %}