{% extends "cranefly/layout.html" %} {% import "forms.html" as form_theme with context %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{{ macros.page_title(title=forum.name,page=pagination['page']) }}{% endblock %} {% block breadcrumb %}{{ super() }} {{ macros.parents_list(parents) }}
  • {{ forum.name }} {%- endblock %} {% block container %}
    {% if forum.description %}
    {{ forum.description_preparsed|markdown_final|safe }}
    {% endif %} {% if forum.subforums %}

    {% trans %}Child forums{% endtrans %}

    {% for subforum in forum.subforums %}

    {{ subforum.name }}

    {% if subforum.show_details %}
    {% if subforum.type != 'redirect' %} {% if acl.forums.can_browse(subforum) and (acl.threads.can_read_threads(subforum) == 2 or (acl.threads.can_read_threads(subforum) == 1 and subforum.last_poster_id == user.pk)) %} {% if subforum.last_thread_id -%}
    {% if subforum.last_poster_id %}{{ subforum.last_poster_name }}{% else %}{{ subforum.last_poster_name }}{% endif %} - {{ subforum.last_thread_date|reltimesince }}
    {%- else -%} {% trans %}This forum is empty{% endtrans %} {%- endif %} {%- else -%} {% trans %}This forum is protected{% endtrans %} {%- endif %} {%- else -%}
    {% trans count=subforum.redirects, clicks=macros.wrap(subforum.redirects|intcomma, 'span', 'class="last-poster"') %}{{ clicks }} click{% pluralize %}{{ clicks }} clicks{% endtrans %}
    {%- endif %}
    {% endif %} {% if subforum.subforums %} {% endif%}
    {% if subforum.description %}

    {{ subforum.description }}

    {% endif %}
    {% if subforum.type != 'redirect' %} {% trans %}Posts{% endtrans %}: {{ subforum.posts|intcomma }} {% trans %}Threads{% endtrans %}: {{ subforum.threads|intcomma }} {% else %} {% trans %}Clicks{% endtrans %}: {{ subforum.redirects|intcomma }} {% endif %}
    {% endfor %}
    {% endif %} {% if message %}
    {{ macros.draw_message(message) }}
    {% endif %}
    {{ pager() }} {{ prefix_selection() }} {% if user.is_authenticated() and acl.threads.can_start_threads(forum) %} {% trans %}New Thread{% endtrans %} {% endif %}
    {% if threads %} {% if user.is_authenticated() and list_form %}
    {% set list_form_context = list_form.list_action.field.widget.get_context(list_form.list_action.html_name, list_form.list_action.value()) %} {% if list_form_context['optgroups'][0][1]|length > 1 %} {{ form_theme.field(list_form.list_action, attrs={'class': 'span3'}) }} {% else %} {% endif %}
    {% endif %} {% else %}
    {% if active_prefix %} {% trans prefix=draw_prefix(active_prefix) %}There are no threads prefixed with {{ prefix }} in this forum.{% endtrans %} {% else %} {% trans %}There are no threads in this forum.{% endtrans %} {% endif %}
    {% endif %}
    {{ pager() }} {% if user.is_authenticated() and acl.threads.can_start_threads(forum) %} {% trans %}New Thread{% endtrans %} {% elif not user.is_authenticated() and not user.is_crawler() %} {% endif %}
    {% endblock %} {% macro forum_stats(forum) -%} {% if forum.last_thread_id and not forum.attr('hidethread') -%} {% trans count=forum.posts, posts=fancy_number(forum.posts, forum.posts_delta), thread=forum_thread(forum) -%} {{ posts }} post - last in {{ thread }} {%- pluralize -%} {{ posts }} posts - last in {{ thread }} {%- endtrans %} {%- else -%} {% trans count=forum.posts, posts=fancy_number(forum.posts, forum.posts_delta) -%} {{ posts }} post {%- pluralize -%} {{ posts }} posts {%- endtrans %} {%- endif %} {%- endmacro %} {% macro forum_thread(forum) -%} {{ forum.last_thread_name }} {%- endmacro %} {% macro redirect_stats(forum) -%} {% trans count=forum.redirects, redirects=fancy_number(forum.redirects, forum.redirects_delta) -%} {{ redirects }} click {%- pluralize -%} {{ redirects }} clicks {%- endtrans %} {%- endmacro %} {% macro fancy_number(number, delta) -%} {{ number|intcomma }} {%- endmacro %} {% macro pager() %} {% if pagination['total'] > 0 %} {% endif %} {% endmacro %} {% macro prefix_selection() %} {% if prefixes %}
    {% endif %} {% endmacro %} {% macro draw_prefix(prefix) -%} {{ _(prefix.name) }} {%- endmacro %} {% block javascripts -%}{{ super() }} {%- endblock %}