{% extends 'board_base.html' %}
{% load i18n %}
{% load mptt_tags %}
{% load forum_tags %}

{% block sub_title %}{% trans "Index" %}{% endblock sub_title %}

{% block content %}
<div class="flex flex-wrap mt-3">
  <div class="w-full forumlist-top-controls">
    {% if request.user.is_authenticated %}
    <div class="float-right">
      <a href="{% url 'forum_tracking:mark_all_forums_read' %}" class="inline-block uppercase"><i class="fas fa-check-circle">&nbsp;</i>{% trans "Mark forums read" %}</a>
    </div>
    <a href="{% url 'forum_tracking:unread_topics' %}" class="inline-block uppercase">{% trans "View unread topics" %}</a>
    {% endif %}
  </div>
</div>
{% forum_list forums %}
<div class="flex flex-wrap my-4">
  <div class="w-full forum-page-statistics">
    <h3 class="page-header">{% trans "Stats" %}</h3>
    <div class="flex mt-3 space-x-24">
      <div>
        <h4>{% trans "Total Posts" %}</h4>
        {{ total_posts_count }}
      </div>
      <div>
        <h4>{% trans "Total Topics" %}</h4>
        {{ total_topics_count }}
      </div>
    </div>
  </div>
</div>
{% endblock content %}
