{% load i18n %} {% macro page_title(title='', parent='', page=0) -%} {% if title %}{{ title }}{% if page > 1 %} | {% trans page=page %}Page {{ page }}{% endtrans %}{% endif %} | {% if parent %}{{ parent }} | {% endif %}{% endif %}{{ settings.board_name }} {%- endmacro %} {# Guest avatar #} {% macro avatar_guest(size=None) -%} {{ STATIC_URL }}avatars/{% if size %}{{ size }}_{% endif %}avatar_guest.jpg {%- endmacro %} {# Messages list macro #} {% macro messages_list(messages) %}{% if messages %}
{% for message in messages %} {{ draw_message(message) }} {% endfor %}
{% endif %} {% endmacro %} {# Render single message #} {% macro draw_message(message, class='') %}
{{ draw_message_icon(message) }}

{{ message.message }}

{%- endmacro %} {# Render single message #} {% macro draw_message_icon(message) -%}
{%- endmacro %} {# Render forums list #} {% macro draw_forums(category, width=12) %} {% if category.template != 'row' %}
{% for forum in category.subforums %} {{ draw_forum(category, forum, width) }} {% if not loop.last and ((category.template == 'half' and loop.index is even()) or (category.template == 'quad' and loop.index is divisibleby(4))) %}
{% endif %} {% endfor %}
{% else %} {% for forum in category.subforums %} {{ draw_forum(category, forum, width) }} {% endfor %} {% endif %} {% endmacro %} {# Render forum on list #} {% macro draw_forum(category, forum, width=12) %}

{{ forum.name }}

{% if forum.description %}
{{ forum.description }}
{% endif %}
{% if category.show_details and category.template != 'quarter' %} {% if forum.type == 'redirect' %}
{% if forum.redirects_delta > 0 %}+{{ forum.redirects_delta }}{% else %}{{ forum.redirects }}{% endif %} {% trans %}clicks{% endtrans %}
{% else %}
{% if forum.posts_delta > 0 %}+{{ forum.posts_delta }}{% else %}{{ forum.posts }}{% endif %} {% trans %}posts{% endtrans %}
{% if category.template != 'half' %}
{% if forum.threads_delta > 0 %}+{{ forum.threads_delta }}{% else %}{{ forum.threads }}{% endif %} {% trans %}threads{% endtrans %}
{% endif %} {% endif %} {% endif %}
{% endmacro %}