speech_content_index.html 1.46 KB
Newer Older
Robin Sonnabend's avatar
Robin Sonnabend committed
1 2
{% for event in events %}    
    <div class="mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet mdl-cell--4-col-phone mdl-card mdl-shadow--2dp">
3
    {% if event.paused %}
Robin Sonnabend's avatar
Robin Sonnabend committed
4 5
        <div class="mdl-card__title rede-paused-title">
            <h4 class="mdl-card__title-text rede-paused-title-text">
6
                Paused until {{ event.paused_until.strftime("%H:%M") }}
Robin Sonnabend's avatar
Robin Sonnabend committed
7 8 9
            </h4>
        </div>
    {% endif %}
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
    {% if event.current_topic_id != -1 and event.get_current_topic() %}
        <div class="mdl-card__title">
            {{ event.name }}: {{ event.get_current_topic().name }}
        </div>
        <table class="mdl-data-table mdl-js-table" style="min-width: 100%">
            <thead>
                <tr>
                    <th class="mdl-data-table__cell--non-numeric">Speaker</th>
                    <th class="mdl-data-table__cell">Count</th>
                </tr>
            </thead>
            <tbody>
            {% for statement in event.get_current_topic().sorted_statements() %}
                <tr>
                    <td class="mdl-data-table__cell--non-numeric">{{ statement.speaker.identifier() }}</td>
                    <td class="mdl-data-table__cell">{{ statement.speaker.count(event.get_current_topic()) }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% else %}
        <div class="mdl-card__title">
            {{ event.name }}: No topic set
        </div>
    {% endif %}
Robin Sonnabend's avatar
Robin Sonnabend committed
35 36
    </div>
{% endfor %}