In most cases this mirrors the primary header on the page, but in some cases the title is simplified and/or nested to reflect the depth of the current page Co-authored-by: Thomas Steen Rasmussen <tykling@bornhack.org>
50 lines
1.4 KiB
HTML
50 lines
1.4 KiB
HTML
{% extends 'program_base.html' %}
|
|
|
|
{% load commonmark %}
|
|
{% load static %}
|
|
|
|
{% block extra_head %}
|
|
<noscript>
|
|
<meta http-equiv="refresh" content="0; url={% url "program:noscript_schedule_index" camp_slug=camp.slug %}" />
|
|
</noscript>
|
|
{% endblock %}
|
|
|
|
{% block title %}
|
|
Schedule | {{ block.super }}
|
|
{% endblock %}
|
|
|
|
{% block program_content %}
|
|
|
|
<noscript>
|
|
<div class="row">
|
|
<p>
|
|
No javascript? Don't worry, we have a HTML only version of the schedule! Redirecting you there now.
|
|
</p>
|
|
<p>
|
|
<a href="{% url "program:noscript_schedule_index" camp_slug=camp.slug %}">
|
|
Click here if you are not redirected.
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</noscript>
|
|
|
|
<div id="schedule-container"></div>
|
|
|
|
<script src="{% static "js/elm_based_schedule.js" %}"></script>
|
|
|
|
<script>
|
|
var container = document.getElementById('schedule-container');
|
|
var ws_scheme = window.location.protocol == "https:" ? "wss" : "ws";
|
|
var elm_app = Elm.Main.embed(
|
|
container,
|
|
{ 'schedule_timeslot_length_minutes': Number('{{ schedule_timeslot_length_minutes }}')
|
|
, 'schedule_midnight_offset_hours': Number('{{ schedule_midnight_offset_hours }}')
|
|
, 'ics_button_href': "{% url 'program:ics_view' camp_slug=camp.slug %}"
|
|
, 'camp_slug': "{{ camp.slug }}"
|
|
, 'websocket_server': ws_scheme + "://" + window.location.host + "/schedule/"
|
|
}
|
|
);
|
|
</script>
|
|
|
|
{% endblock %}
|