bornhack-website/src/program/templates/schedule_overview.html
Thomas Steen Rasmussen 182ec6fef4 wording
2017-04-09 17:52:41 +02:00

29 lines
1 KiB
HTML

{% extends 'schedule_base.html' %}
{% block schedule_content %}
{% if eventinstances %}
{% 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 %}
<a class="event"
href="{% url 'event_detail' camp_slug=camp.slug slug=eventinstance.event.slug %}"
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>
<span class="pull-right" style="font-family: 'FontAwesome';">&#x{{ eventinstance.location.icon }};</span>
<br />
{{ eventinstance.event.title }}
<br />
</a>
{% endif %}
{% endfor %}
</div>
<hr />
{% endfor %}
{% else %}
<h2>No scheduled events for {{ camp.title }} yet!</h2>
{% endif %}
{% endblock schedule_content %}