speech_content_index.html 1.82 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 %}
Robin Sonnabend's avatar
Robin Sonnabend committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
    <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 topic in event.topics %}
            {% if topic.id == event.current_topic_id %}
                <tr class="rede-table-bg-blue rede-table-centered">
                    <td colspan="2">{{ topic.name }}</td>
25
                </tr>
Robin Sonnabend's avatar
Robin Sonnabend committed
26 27 28 29 30 31 32 33 34 35 36 37 38
                {% for statement in event.get_current_topic().sorted_statements() %}
                    {% if statement.is_meta %}
                    <tr class="rede-table-bg-red">
                    {% else %}
                    <tr>
                    {% endif %}
                        <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 %}
            {% else %}
                <tr class="rede-table-centered">
                    <td colspan="2">{{ topic.name }}</td>
39
                </tr>
Robin Sonnabend's avatar
Robin Sonnabend committed
40 41 42 43
            {% endif %}
        {% endfor %}
        </tbody>
    </table>
Robin Sonnabend's avatar
Robin Sonnabend committed
44 45
    </div>
{% endfor %}