{% extends 'base.html' %}
{% load staticfiles %}
{% load url from future %}

{% block title %}View Speaker: {{ object.name}}{% endblock %}

{% block content %}

    <h1>{{ object.name }}</h1>

    <h3>Speeches</h3>
    <p><a class="btn" href="{% url "speech-add" %}?speaker={{ object.id }}">Add a new speech by {{ object.name }}</a></p>
    <ul>
        {% if not speech_list %}
            <li>{{ object.name }} has no recorded speeches yet.</li>
        {% endif %}
        {% for speech in speech_list %}
            <li><a href="{% url "speech-view" speech.id %}">{{ speech }}</a>
        {% endfor %}
    </ul>

{% endblock %}
{% extends 'base.html' %}
{% load staticfiles %}
{% load url from future %}

{% block title %}View Speaker: {{ object.name}}{% endblock %}

{% block content %}

    <h1>{{ object.name }}</h1>

    <h3>Speeches</h3>
    <p><a class="btn" href="{% url "speech-add" %}?speaker={{ object.id }}">Add a new speech by {{ object.name }}</a></p>
    <ul class="unstyled">
        {% if not speech_list %}
            <li>{{ object.name }} has no recorded speeches yet.</li>
        {% endif %}
        {% for speech in speech_list %}
            {% include "speeches/speech_list_item_without_speaker.html" with speech=speech only %}
        {% endfor %}
    </ul>

{% endblock %}
Refactor list of speeches on speaker page to use the same template as other lists of speeches
Refactor list of speeches on speaker page to use the same template as other lists of speeches
