index.html 1.94 KB
Newer Older
YSelf Tool's avatar
YSelf Tool committed
1 2
{% extends "layout.html" %}
{% block title %}Index{% endblock %}
YSelf Tool's avatar
YSelf Tool committed
3 4 5
{% block additional_js %}
    <script src="{{ url_for(".update_js") }}" async></script>
{% endblock %}
YSelf Tool's avatar
YSelf Tool committed
6 7

{% block content %}
YSelf Tool's avatar
YSelf Tool committed
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
    {% 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>
YSelf Tool's avatar
YSelf Tool committed
37
    </div>
YSelf Tool's avatar
YSelf Tool committed
38
    {% endfor %}
YSelf Tool's avatar
YSelf Tool committed
39
{% endblock %}