{% extends 'speeches/base_player.html' %}
{% load url from future %}
{% load i18n %}

{% block title %}{% trans "Speeches" %}{% endblock %}

{% block content %}

<div class="page-header">
    <h1>{% trans "Speeches" %}</h1>
</div>

<ul class="unstyled">
    {% for top in object_list %}
    <li>
        <span class="section-title"><a href="{% url "speeches:section-view" top.get_path %}">{{ top.title }}</a></span>
    </li>
    {% endfor %}
</ul>

    <h2>{% trans 'Unattached speeches' %}</h2>

    <ol class="unstyled">
        {% if not speech_list %}
            <li>{% trans 'There are no unattached speeches.' %}</li>
        {% endif %}
        {% for speech in speech_list %}
            {% include "speeches/speech.html" with speech=speech nosection="1" %}
        {% endfor %}
    </ol>

{% endblock %}
