content_index.html 1.74 KB
Newer Older
YSelf Tool's avatar
YSelf Tool 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
    {% for (statement, speaker, count), event in meta %}
    <div class="mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--4-col-phone mdl-card">
        <div class="mdl-card__title">
            <h3 class="mdl-card__title-text">{{ event.name }}: {{ speaker.name }}</h3>
        </div>
        <div class="mdl-card__actions">
            {% if current_user.is_authenticated() and "user" in current_user.roles %}
            <a href="{{ url_for("speech.index", event=event.id, mode="pending") }}">
                <button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored">
                    <i class="material-icons" role="presentation">build</i>
                </button>
            </a>
            {% endif %}
            <a href="{{ url_for("speech.show", event=event.id, mode="pending") }}">
                <button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored">
                    <i class="material-icons" role="presentation">announcement</i>
                </button>
            </a>
            <a href="{{ url_for("speech.show", event=event.id, mode="all") }}">
                <button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored">
                    <i class="material-icons" role="presentation">list</i>
                </button>
            </a>
            <a href="{{ url_for("speech.show", event=event.id, mode="past") }}">
                <button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored">
                    <i class="material-icons" role="presentation">schedule</i>
                </button>
            </a>
        </div>
    </div>
    {% endfor %}