bornhack-website/program/templates/event_list.html

25 lines
820 B
HTML
Raw Normal View History

{% extends 'schedule_base.html' %}
2016-08-08 17:36:13 +00:00
{% block schedule_content %}
2016-08-08 17:36:13 +00:00
<p class="lead">
An alphabetical list of all talks, workshops, keynotes and other events
2017-01-29 11:37:37 +00:00
at {{ camp.title }}.
2016-08-08 17:36:13 +00:00
</p>
<div class="list-group">
{% for event in event_list %}
2016-08-08 18:59:21 +00:00
{% if event.event_type.name != "Facilities" %}
<a href="{% url 'event_detail' camp_slug=camp.slug 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>
2016-08-08 17:36:13 +00:00
{{ event.title }}
2016-08-08 18:59:21 +00:00
{% if event.speakers.exists %}
by {{ event.speakers.all|join:", " }}
{% endif %}
2016-08-08 17:36:13 +00:00
</a>
{% endif %}
2016-08-08 17:36:13 +00:00
{% endfor %}
</div>
2016-08-08 18:56:59 +00:00
{% endblock schedule_content %}