content_index.html 1.09 KB
Newer Older
Hinrikus Wolf's avatar
Hinrikus Wolf committed
1
    {% for (statement, speaker, count), topic in meta %}
2 3
    <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">
Hinrikus Wolf's avatar
Hinrikus Wolf committed
4
            <h3 class="mdl-card__title-text">{{ topic.name }}: {{ speaker.name }}</h3>
5 6
        </div>
        <div class="mdl-card__actions">
7 8
            {% if current_user.is_authenticated and "user" in current_user.roles %}
            <a href="{{ url_for("speech.index", event=event.id) }}">
9 10 11 12 13
                <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 %}
Hinrikus Wolf's avatar
Hinrikus Wolf committed
14
            <a href="{{ url_for("speech.show", topic=event.id) }}">
15 16 17 18 19 20 21
                <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>
        </div>
    </div>
    {% endfor %}