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

43 lines
1.4 KiB
HTML
Raw Normal View History

{% extends 'schedule_base.html' %}
{% load commonmark %}
{% load staticfiles %}
{% block schedule_content %}
2017-04-20 23:34:22 +00:00
<div id="schedule-container"></div>
{% comment %}
{% 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 %}
2016-08-07 13:49:30 +00:00
<a class="event"
href="{% url 'event_detail' camp_slug=camp.slug slug=eventinstance.event.slug %}"
style="background-color: {{ eventinstance.event.event_type.color }}; color: {% if eventinstance.event.event_type.light_text %}white{% else %}black{% endif %};"
data-eventinstance-id="{{ eventinstance.id }}"
>
2017-03-15 20:54:57 +00:00
<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>
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 %}
{% else %}
2017-04-09 15:52:41 +00:00
<h2>No scheduled events for {{ camp.title }} yet!</h2>
{% endif %}
2017-04-20 23:34:22 +00:00
{% endcomment %}
2017-04-19 21:15:06 +00:00
{% include "event_modal.html" %}
<script src="{% static "channels/js/websocketbridge.js" %}"></script>
<script src="{% static "js/event_instance_websocket.js" %}"></script>
{% endblock schedule_content %}