bornhack-website/program/templates/program_day.html

31 lines
837 B
HTML
Raw Normal View History

{% extends 'program_base.html' %}
{% block program_content %}
2016-08-08 19:18:34 +00:00
<h2>{{ date|date:"l, F jS" }}</h2>
{% for event in events %}
2016-08-20 15:38:12 +00:00
2016-08-07 12:36:43 +00:00
{% ifchanged event.event_type %}
2016-08-20 15:38:12 +00:00
2016-08-07 12:36:43 +00:00
{% if not forloop.first %}</div>{% endif %}
<h3>{{ event.event_type }}</h3>
<div style="display: flex; flex-wrap: wrap;">
2016-08-20 15:38:12 +00:00
2016-08-07 12:36:43 +00:00
{% endifchanged %}
2016-08-07 13:49:30 +00:00
<a class="event"
2016-08-08 17:50:35 +00:00
href="{% url 'schedule:event' slug=event.slug %}"
2016-08-07 12:36:43 +00:00
style="background-color: {{ event.event_type.color }}; border: 0; color: {% if event.event_type.light_text %}white{% else %}black{% endif %};">
<small>{{ event.start|date:"H:i" }} - {{ event.end|date:"H:i" }}</small>
<br />
{{ event }}
2016-08-08 22:48:56 +00:00
<br />
{% if event.speakers.exists %}
by {{ event.speakers.all|join:", " }}
{% endif %}
2016-08-07 13:49:30 +00:00
</a>
2016-08-07 12:36:43 +00:00
{% endfor %}
2016-08-20 15:38:12 +00:00
</div>
2016-08-08 18:56:59 +00:00
{% endblock program_content %}