bornhack-website/src/program/templates/schedule_overview.html

24 lines
856 B
HTML
Raw Normal View History

{% extends 'schedule_base.html' %}
{% block schedule_content %}
{% for day in camp.camp_days %}
{{ day.lower.date|date:"D d/m" }} <br />
<div style="display: flex; flex-wrap: wrap;">
{% for eventinstance in eventinstances %}
{% if eventinstance.schedule_date == day.lower.date %}
2016-08-07 13:49:30 +00:00
<a class="event"
href="{% url 'event_detail' camp_slug=camp.slug slug=eventinstance.event.slug %}"
2017-02-11 16:48:47 +00:00
style="background-color: {{ eventinstance.event.event_type.color }}; border: 0; color: {% if eventinstance.event.event_type.light_text %}white{% else %}black{% endif %};">
<small>{{ eventinstance.when.lower|date:"H:i" }} - {{ eventinstance.when.upper|date:"H:i" }}</small>
2016-08-07 12:36:43 +00:00
<br />
{{ eventinstance.event.title }}
2016-08-08 22:48:56 +00:00
<br />
2016-08-07 13:49:30 +00:00
</a>
{% endif %}
{% endfor %}
</div>
<hr />
{% endfor %}
{% endblock schedule_content %}