{% extends 'pybb/base.html' %}


{% load pybb_tags i18n tags %}

{% block title %}{% trans "Latest topics" %}{% endblock title %}

{% block container_extra_classes %}
    {% if user.is_authenticated %}
        has-subnav
    {% endif %}
{% endblock %}

{% block extra_alerts_container_extra_classes %}
    {% if user.is_authenticated %}
        has-subnav
    {% endif %}
{% endblock %}

{% block global_alerts_container_extra_classes %}
    {% if user.is_authenticated %}
        has-subnav
    {% endif %}
{% endblock %}

{% block breadcrumb %}
    {% with extra_crumb=_("Latest topics") %}
        {% include "pybb/breadcrumb.html" %}
    {% endwith %}
{% endblock %}

{% block content %}
    {% if user.is_authenticated %}
        <div class="subnav subnav-fixed">
            <ul class="nav nav-pills">
                <li>
                    <a data-no-instant href='{% url 'pybb:mark_all_as_read' %}'>
                        <i class="icon-check icon-white"></i>
                        <span class="hidden-phone">{% trans "Mark all as read" %}</span>
                    </a>
                </li>
            </ul>
        </div>
    {% endif %}

    <div class="forum">
        {% if forum.headline %}
            <div class="forum-headline alert alert-block">
                {{ forum.headline|safe }}
            </div>
        {% endif %}

        {% include 'pybb/_forum_tools.html' %}
        {% include "pybb/topic_list.html" %}

        <div class="forum-tools">
            {% include "pagination_simple.html" %}
        </div>
    </div>
{% endblock content %}

{% block extra_js %}
    {% include 'pybb/_forum_selection_js.html' %}
{% endblock %}
