{% 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() }} {% for parent in parents %}
  • {{ parent.name }}
  • {% endfor %}
  • {{ forum.name }} {%- endblock %} {% block container %}
    {% if forum.description %}
    {{ forum.description_preparsed|markdown_final|safe }}
    {% endif %} {% if forum.subforums %}
    {% for subforum in forum.subforums %} {% endfor %}
    {% trans %}Child forums{% endtrans %}

    {{ 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 clicks=macros.wrap(forum.redirects|intcomma, 'span', 'class="last-poster"') %}{{ 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 %}
    {% endif %} {% if message %}
    {{ macros.draw_message(message) }}
    {% endif %}
    {{ pager() }} {% if user.is_authenticated() and acl.threads.can_start_threads(forum) %} {% trans %}New Thread{% endtrans %} {% endif %}
    {% if user.is_authenticated() and list_form %} {% endif %} {% for thread in threads %} {% if user.is_authenticated() and list_form %} {% endif %} {% else %} {% endfor %}
    {% trans %}Thread{% endtrans %} {% trans %}Rating{% endtrans %} {% trans %}Activity{% endtrans %}
    {{ thread.name }} {% trans user=thread_starter(thread), start=thread.start|reltimesince|low %}by {{ user }} {{ start }}{% endtrans %}
      {% if thread.replies_reported %}
    • {% endif %} {% if thread.replies_moderated %}
    • {% endif %} {% if thread.weight == 2 %}
    • {% endif %} {% if thread.weight == 1 %}
    • {% endif %} {% if thread.moderated %}
    • {% endif %} {% if thread.deleted %}
    • {% endif %} {% if thread.closed %}
    • {% endif %}
    {% if (thread.upvotes-thread.downvotes) > 0 %}+{% elif (thread.upvotes-thread.downvotes) < 0 %}-{% endif %}{{ (thread.upvotes-thread.downvotes)|abs|intcomma }}
    {{ replies(thread.replies) }} - {% trans user=thread_reply(thread), last=thread.last|reltimesince|low %}last by {{ user }} {{ last }}{% endtrans %}
    {% if thread.forum_id == forum.pk %}{% else %} {% endif %}
    {% trans %}There are no threads in this forum.{% endtrans %}
    {% if user.is_authenticated() and list_form %}
    {{ form_theme.input_select(list_form['list_action'],width=3) }}
    {% 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 replies(thread_replies) -%} {% trans count=thread_replies, replies=('' ~ (thread_replies|intcomma) ~ '')|safe -%} {{ replies }} reply {%- pluralize -%} {{ replies }} replies {%- endtrans %} {%- endmacro %} {% macro thread_starter(thread) -%} {% if thread.start_poster_id %}{{ thread.start_poster_name }}{% else %}{{ thread.start_poster_name }}{% endif %} {%- endmacro %} {% macro thread_reply(thread) -%} {% if thread.last_poster_id %}{{ thread.last_poster_name }}{% else %}{{ thread.last_poster_name }}{% endif %} {%- endmacro %} {% macro pager() %} {% if pagination['total'] > 0 %} {% endif %} {% endmacro %} {% block javascripts -%}{{ super() }} {%- endblock %}