2021-01-22 04:23:08 +00:00
{% extends "symposion/schedule/base.html" %}
2015-10-16 17:53:02 +00:00
{% load i18n %}
{% load cache %}
2017-09-27 13:46:13 +00:00
{% load lca2018_tags %}
2015-10-16 17:53:02 +00:00
{% block head_title %}Conference Schedule{% endblock %}
2019-10-20 13:16:29 +00:00
{% block page_title %}Conference Schedule{% endblock %}
2018-09-28 22:42:27 +00:00
{% block content %}
2019-12-15 08:01:39 +00:00
< div class = "float-right d-print-none" >
< div class = "dropdown" >
< button class = "btn btn-secondary dropdown-toggle" type = "button" id = "downloadMenuButton" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
Download
< / button >
< div class = "dropdown-menu dropdown-menu-right" aria-labelledby = "downloadMenuButton" >
< h6 class = "dropdown-header" > Format< / h6 >
< a class = "dropdown-item" href = "{% url " ical_feed " % } " > iCal (ICS)< / a >
< a class = "dropdown-item" href = "{% url " schedule_json " % } " > JSON< / a >
< / div >
< / div >
< / div >
2019-10-20 13:16:29 +00:00
< div class = "row d-print-none" >
< div class = "col" >
< ul class = "nav nav-pills flex-column flex-md-row" id = "schedule-tabs" role = "tablist" >
{% for section in sections %}
{% for timetable in section.days %}
< li class = "nav-item flex-md-fill text-md-center" >
2021-01-22 04:23:08 +00:00
{% include "symposion/schedule/_schedule_nav_link.html" with active=forloop.first label=timetable.day.date|date:"l" date=timetable.day.date|date:"Y-m-d" %}
2019-10-20 13:16:29 +00:00
< / li >
{% endfor %}
2018-12-29 00:36:13 +00:00
{% endfor %}
2019-10-20 13:16:29 +00:00
< / ul >
< / div >
< / div >
2018-12-29 00:36:13 +00:00
2019-10-20 13:16:29 +00:00
< div class = "tab-content d-print-block my-3" id = "schedule-tabContent" >
{% for section in sections %}
{% cache 600 "schedule-table" section.schedule.section %}
2018-12-29 00:36:13 +00:00
{% for timetable in section.days %}
2019-10-20 13:16:29 +00:00
< div class = "row tab-pane fade {% if forloop.first %}show active{% endif %} d-print-block" id = "{{ timetable.day.date|date:" l " | lower } } " role = "tabpanel" aria-labelledby = "schedule_day_{{ timetable.day.date|date:" l " | lower } } -tab " >
< div class = "col-12" >
< h2 class = "my-4" >
{{ section.schedule.section.name }}
< span class = "clearfix d-sm-block d-md-none" > < / span >
< small class = "text-muted" > {{ timetable.day.date|date:"l" }}, {{ timetable.day.date }}< / small >
< / h2 >
2022-12-07 14:08:54 +00:00
< p class = "timezone-info small" > Conference times are in {{ settings.CONF_START|date:'T' }} (UTC{{ settings.CONF_START|date:'O' }}). < span class = "d-print-none" > Current talks will be highlighted.< / span > < / p >
2019-10-20 13:16:29 +00:00
< div class = "table-responsive d-none d-md-block" >
{% include "symposion/schedule/_grid.html" %}
< / div >
< div class = "mobile-schedule d-sm-block d-md-none" >
{% include "symposion/schedule/_mobile.html" %}
2018-12-29 00:36:13 +00:00
< / div >
2018-09-28 22:42:27 +00:00
< / div >
< / div >
2019-10-20 13:16:29 +00:00
{% endfor %}
{% endcache %}
{% endfor %}
2016-12-10 06:11:40 +00:00
< / div >
2015-10-16 17:53:02 +00:00
{% endblock %}
2017-01-02 10:58:24 +00:00
{% block scripts_extra %}
2019-10-20 13:16:29 +00:00
< script type = "text/javascript" >
2019-12-15 04:47:21 +00:00
window.addEventListener("hashchange", function(event) {
var fragment = window.location.hash.toLowerCase().substring(1);
2019-10-20 13:16:29 +00:00
if (!fragment) {
return;
};
2019-12-15 04:47:21 +00:00
var tab_id = "#schedule_day_" + fragment + "-tab";
$(tab_id).tab('show');
}, false);
2019-10-20 13:16:29 +00:00
2019-12-15 04:47:21 +00:00
$(".nav-item").click(function(event) {
// This updates the window location fragment so that
// the URL bar is updated, and so that when you go
// back, it loads the right page.
2019-10-20 13:16:29 +00:00
2019-12-15 04:47:21 +00:00
// len("schedule_day_") == 13
var day_tab = event.target.id.substring(13);
var day = day_tab.substr(0, day_tab.length-4);
2019-10-20 13:16:29 +00:00
2019-12-15 04:47:21 +00:00
if (history.pushState) {
history.pushState(null, null, "#" + day);
}
});
2019-01-21 08:57:13 +00:00
< / script >
2019-10-20 13:16:29 +00:00
{{ block.super }}
{% endblock %}