bornhack-website/program/templates/event_list.html
2016-08-08 20:59:21 +02:00

25 lines
799 B
HTML

{% extends 'schedule_base.html' %}
{% block schedule_content %}
<p class="lead">
An alphabetical list of all talks, workshops, keynotes and other events
at BornHack 2016.
</p>
<div class="list-group">
{% for event in event_list %}
{% if event.event_type.name != "Facilities" %}
<a href="{% url 'schedule:event' slug=event.slug %}" class="list-group-item">
<small style="background-color: {{ event.event_type.color }}; border: 0; color: {% if event.event_type.light_text %}white{% else %}black{% endif %}; display: inline-block; padding: 5px;">
{{ event.event_type.name }}
</small>
{{ event.title }}
{% if event.speakers.exists %}
by {{ event.speakers.all|join:", " }}
{% endif %}
</a>
{% endif %}
{% endfor %}
</div>
{% endblock schedule_content %}