speech_content_index.html 1.58 KB
Newer Older
Robin Sonnabend's avatar
Robin Sonnabend committed
1 2 3 4 5 6 7 8 9 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 35 36 37
{% 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">
    {% if not event.paused %}
        {% 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.current_topic) }}</td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        {% else %}
            <div class="mdl-card__title">
                {{ event.name }}: No topic set
            </div>
        {% endif %}
    {% else %}
        <div class="mdl-card__title rede-paused-title">
            <h4 class="mdl-card__title-text rede-paused-title-text">
                {{ event.name}}: Paused until {{ event.paused_until.strftime("%H:%M") }}
            </h4>
        </div>
    {% endif %}
    </div>
{% endfor %}