{% extends "misago/threadslist/base.html" %}
{% load i18n misago_absoluteurl %}


{% block title %}
  {% if THREADS_ON_INDEX %}
    {% if list_name %}
      {{ list_name }} | {{ block.super }}
    {% else %}
      {{ settings.index_title|default:settings.forum_name }}
    {% endif %}
  {% else %}
    {% if list_name %}
      {{ list_name }} | {% trans "Threads" %} | {{ block.super }}
    {% else %}
      {% trans "Threads" %} | {{ block.super }}
    {% endif %}
  {% endif %}
{% endblock title %}


{% block meta-description %}
  {% if THREADS_ON_INDEX and settings.index_meta_description %}
    {{ settings.index_meta_description }}
  {% endif %}
{% endblock meta-description %}


{% block og-title %}
  {% if THREADS_ON_INDEX %}
    {{ settings.index_title|default:settings.forum_name }}
  {% else %}
    {% trans "Threads" %}
  {% endif %}
{% endblock og-title %}


{% block twitter-title %}
  {% if THREADS_ON_INDEX %}
    {{ settings.index_title|default:settings.forum_name }}
  {% else %}
    {% trans "Threads" %}
  {% endif %}
{% endblock twitter-title %}


{% block og-url %}{% absoluteurl request_path %}{% endblock %}
{% block twitter-url %}{% absoluteurl request_path %}{% endblock %}


{% block extra-css %}
  page-threads-index
{% endblock extra-css %}


{% block page-header %}
<div class="page-header">
  <div class="container">
    <div class="row">
      <div class="{{ user.is_authenticated|yesno:'col-md-8,col-xs-12' }}">
        <div class="row">
          <div class="col-xs-12">
            {% if THREADS_ON_INDEX %}
              <h1>{{ settings.index_header|default:settings.forum_name }}</h1>
            {% else %}
              <h1>{% trans "Threads" %}</h1>
            {% endif %}
          </div>
        </div>
      </div>
    </div>
  </div>
  {% if user.is_authenticated %}
    {% include "misago/threadslist/tabs.html" %}
  {% endif %}
</div>
{% endblock page-header %}