11{% extends "base.html" %}
2+ {% load static %}
23
34{% block main_content %}
4-
5- {# Timetable #}
6-
7- < h1 class ="title title--yellow mb-xs-40 "> Timetable</ h1 >
8- < hr class ="line line--blue line--short line--spaced ">
9- < div class ="rooms ">
5+ {# Timetable #}
6+ < h1 class ="title title--yellow mb-xs-40 "> Timetable</ h1 >
7+ < hr class ="line line--blue line--short line--spaced ">
8+ < div class ="rooms ">
109 {% if rooms %}
1110 < ul >
12- {% for room in rooms %}
13- < li class ="button button--blue "> {{ room.name }}</ li >
14- {% endfor %}
11+ {% for room in rooms %}
12+ < li class ="button button--blue btn-room btn-{{ room.name }} "> {{ room.name }}</ li >
13+ {% endfor %}
1514 </ ul >
1615 {% endif %}
17- </ div >
18- < div class ="presentations ">
19- {% if presentations %}
20- {% for presentation in presentations %}
21- < div class ="presentation ">
22- < div class ="pre-side "> < img src ="../static/img/clock.svg " width ="20px " height ="20px "> </ div >
23- < div class ="presentation-card ">
24- < img src ={{ presentation.speaker.image }} width ="80px " height ="80px " alt ="avatar ">
25- < div >
26- < h2 class ="name "> {{ presentation.speaker.name }}</ h2 >
27- < hr />
28- < span class ="subtitle "> {{ presentation.speaker.job }}</ span >
29- </ div >
30- < p class ="description "> {{ presentation.description }}</ p >
31- </ div >
32- </ div >
33- {% endfor %}
34- {% else %}
16+ </ div >
17+ < div class ="presentations main-presentation ">
18+ {% if slots %}
19+ {% for slot in slots %}
20+ < div class ="presentation ">
21+ < div class ="pre-side "> < img src ="../static/img/clock.svg " width ="20px " height ="20px "> </ div >
22+ < div class ="presentation-card ">
23+ < ul >
24+ {% for key, value in DAYS.items %}
25+ {% if key == slot.from_date.date %}
26+ < li class ="button button--blue pull-right "> {{ value }}, {{ slot.from_date.time }} to {{ slot.to_date.time }}</ li >
27+ {% endif %}
28+ {% endfor %}
29+ </ ul >
30+
31+ {% if slot.talk.speaker.name %}
32+ < div >
33+ < h2 class ="name "> {{ slot.talk.speaker.name }}</ h2 >
34+ < hr />
35+ {% if slot.talk.speaker.job %}
36+ < span class ="subtitle "> {{ slot.talk.speaker.job }}</ span >
37+ {% endif %}
38+ </ div >
39+ {% endif %}
40+ < p class ="description "> {% if slot.talk.speaker %} {% if slot.talk.type == 0 %} Talk: {% elif slot.talk.type == 1 %} Workshop: {{ slot.talk.description }} {% elif slot.talk.type == 2 %} Keynote: {% endif %} {% endif %} {{ slot.talk.description }}</ p >
41+ </ div >
42+ </ div >
43+ {% endfor %}
44+ {% else %}
3545 < h2 class ="title title--white title--medium title--uppercase mt-xs-20 ">
36- < span class ="featured-letter featured-letter--blue "> C</ span > oming < span class ="featured-letter featured-letter--yellow "> S</ span > oon
37- </ h2 >
38- {% endif %}
46+ < span class ="featured-letter featured-letter--blue "> C</ span > oming < span class ="featured-letter featured-letter--yellow "> S</ span > oon
47+ </ h2 >
48+ {% endif %}
49+ </ div >
50+ {% if slots_by_rooms %}
51+ {% for room, slots in slots_by_rooms.items %}
52+ < div class ="presentations {{ room }} hidden ">
53+ {% for slot in slots %}
54+ < div class ="presentation ">
55+ < div class ="pre-side "> < img src ="../static/img/clock.svg " width ="20px " height ="20px "> </ div >
56+ < div class ="presentation-card ">
57+ < ul >
58+ {% for key, value in DAYS.items %}
59+ {% if key == slot.from_date.date %}
60+ < li class ="button button--blue pull-right "> {{ value }}, {{ slot.from_date.time }} to {{ slot.to_date.time }}</ li >
61+ {% endif %}
62+ {% endfor %}
63+ </ ul >
64+
65+ {% if slot.talk.speaker.name %}
66+ < div >
67+ < h2 class ="name "> {{ slot.talk.speaker.name }}</ h2 >
68+ < hr />
69+ {% if slot.talk.speaker.job %}
70+ < span class ="subtitle "> {{ slot.talk.speaker.job }}</ span >
71+ {% endif %}
72+ </ div >
73+ {% endif %}
74+ < p class ="description "> {% if slot.talk.speaker %} {% if slot.talk.type == 0 %} Talk: {% elif slot.talk.type == 1 %} Workshop: {{ slot.talk.description }} {% elif slot.talk.type == 2 %} Keynote: {% endif %} {% endif %} {{ slot.talk.description }}</ p >
75+ </ div >
3976 </ div >
40-
41- {% endblock %}
77+ {% endfor %}
78+ </ div >
79+ {% endfor %}
80+ {% endif %}
81+ {% endblock main_content %}
82+ {% block scripts %}
83+ < script src ="{% static 'js/timetable.js' %} " type ="text/javascript "> </ script >
84+ {% endblock %}
0 commit comments