bornhack-website/program/templates/program_day.html

22 lines
608 B
HTML
Raw Normal View History

{% extends 'program_base.html' %}
{% block program_content %}
{% for event in events %}
2016-08-07 12:36:43 +00:00
{% ifchanged event.event_type %}
{% if not forloop.first %}</div>{% endif %}
<h3>{{ event.event_type }}</h3>
<div style="display: flex; flex-wrap: wrap;">
{% endifchanged %}
<div class="event"
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 }}
</div>
{% endfor %}
{% endblock %}