{% 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 %} {{ hook_above_forum_home|safe }}
{{ hook_above_home_forums_list|safe }} {% for category in forums_list %}{% if category.subforums %}

{{ category.name }}{% if category.description %} {{ category.description }}{% endif %}

{% for forum in category.subforums %}

{{ forum.name }}

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

{{ forum.description }}

{% endif %}
{% if forum.type != 'redirect' %} {% trans %}Posts{% endtrans %}: {{ forum.posts|intcomma }} {% trans %}Threads{% endtrans %}: {{ forum.threads|intcomma }} {% else %} {% trans %}Clicks{% endtrans %}: {{ forum.redirects|intcomma }} {% endif %}
{% endfor %}
{% endif %} {% else %}

{% trans %}Looks like no forums have been set yet, or you don't have permission to see any.{% endtrans %}

{% endfor %} {{ hook_below_home_forums_list|safe }}
{{ hook_above_home_sidepanel|safe }} {% if ranks_online %}
{% for rank in ranks_online %}{% if rank.online %}

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

{% endif %}{% endfor %}
{% endif %} {{ hook_after_home_sidepanel_ranks_online|safe }} {% if threads_ranking %} {% endif %} {{ hook_after_home_sidepanel_popular_threads|safe }}
  • {{ monitor.posts|int|intcomma }}
  • {{ monitor.threads|int|intcomma }}
  • {{ monitor.users|int|intcomma }}
  • {% if settings.online_counting != 'no' %}
  • {{ users_online.members|int|intcomma }} {{ users_online.all|int|intcomma }}
  • {% endif %}
{{ hook_after_home_sidepanel_forum_stats|safe }} {% if user.is_authenticated() %}
{% endif %} {{ hook_below_home_sidepanel|safe }}
{{ hook_below_forum_home|safe }} {% endblock %} {% block javascripts -%}{{ super() }} {%- endblock %}