{% extends "cranefly/layout.html" %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{% if settings.board_index_title %}{{ settings.board_index_title }}{% else %}{{ settings.board_name }}{% endif %}{% endblock %} {% block meta %}{% if settings.board_index_meta %} {%- endif %}{%- endblock %} {% block content %}
{% for category in forums_list %}{% if category.subforums %}
{% for forum in category.subforums %} {% endfor %}
{{ category.name }}{% if category.description %} {{ category.description }}{% endif %}
{{ forum.name }} {% if forum.show_details %}
{% if forum.type == 'redirect' %} {{ redirect_stats(forum) }} {% else %} {{ forum_stats(forum) }} {% endif %}
{% endif %} {% if forum.description %}

{{ forum.description }}

{% endif %}
{% endif %}{% endfor %}
{% if ranks_online %}
{% for rank in ranks_online %}{% if rank.online %}

{% trans rank_name=_(rank.name) %}{{ rank_name }} Online{% endtrans %}

    {% for online in rank.online %}
  • {{ online.username }} {% if rank.title or online.title %}{% if online.title %}{{ online.title }}{% else %}{{ _(rank.title) }}{% endif %}{% endif %}
  • {% endfor %}
{% endif %}{% endfor %}
{% endif %} {% if popular_threads %} {% endif %}
  • {{ monitor.posts|int|intcomma }}
  • {{ monitor.threads|int|intcomma }}
  • {{ monitor.users|int|intcomma }}
  • {{ users_online|int|intcomma }}
{% if user.is_authenticated() %}
{% 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 %}