bornhack-website/program/templates/program_overview.html
Thomas Steen Rasmussen ac19cde93b singular or plural
2016-08-08 19:54:57 +02:00

36 lines
1.3 KiB
HTML

{% extends 'program_base.html' %}
{% block program_content %}
<a href="{% url 'call-for-speakers' %}" class="btn">Call for Speakers</a>
<a href="{% url 'schedule:speaker_index' %}" class="btn">Speakers</a>
<a href="{% url 'schedule:event_index' %}" class="btn">Talks &amp; Events</a>
<a href="{% url 'schedule:index' %}" style="background-color: black; border: 0; color: white; display: inline-block; padding: 5px;">
All
</a>
{% for event_type in event_types %}
<a href="{% url 'schedule:index' %}?type={{ event_type.slug }}" style="background-color: {{ event_type.color }}; border: 0; color: {% if event_type.light_text %}white{% else %}black{% endif %}; display: inline-block; padding: 5px;">
{{ event_type.name }}
</a>
{% endfor %}
<hr />
{% for day, events in day_events.items %}
{{ day.date|date:"D d/m" }} <br />
<div style="display: flex; flex-wrap: wrap;">
{% for event in events %}
<a class="event"
href="{% url 'schedule:event' slug=event.slug %}"
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 }}
</a>
{% endfor %}
</div>
<hr />
{% endfor %}
{% endblock %}