-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpresentation.html
More file actions
214 lines (192 loc) · 10.8 KB
/
presentation.html
File metadata and controls
214 lines (192 loc) · 10.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{% include header.html %}
{% include search_results.html %}
{% if page.type == 'workshop' %}
{% assign page_date = page.date %}
{% capture page_length %}{{ page.startTime }} - {{ page.endTime }}{% endcapture %}
{% assign location = site.data.locations | where: 'id', page.location | first %}
{% assign location_display = location.name %}
{% if page.room %}
{% assign room = location.rooms | where: 'id', page.room | first %}
{% capture location_display %}{{ location.name }} - {{ room.name }}{% endcapture %}
{% endif %}
{% endif %}
{% if page.type == 'talk' or page.type == 'key-open' or page.type == 'key-close' or page.type == 'poster' %}
{% assign page_date = page.startTime %}
{% endif %}
<script src="{{ "/assets/js/placeholder.js" | relative_url }}"></script>
<div class="container presentation" id="main">
<div class="row">
<div class="col-12 col-sm-8 col-md-9">
<h1>{{ page.title }}</h1>
{% if page.full == true %}
<p class="alert alert-warning">This workshop is at maximum capacity and no longer accepting registrations.</p>
{% elsif page.full == "canceled" %}
<p class="alert alert-danger">This workshop has been canceled.</p>
{% elsif page.full == "limited" %}
<p class="alert alert-warning">This workshop is near capacity.</p>
{% endif %}
<p>{{ content }}</p>
{% if page.learning-outcomes or page.attendee-requirements %}
<hr/>
{% if page.learning-outcomes %}
<p><span class="font-weight-bold">Learning Objectives:</span> {{ page.learning-outcomes }}</p>
{% endif %}
{% if page.attendee-requirements %}
{% if page.attendee-requirements.first %}
<p><span class="font-weight-bold">Attendee Requirements:</span>
<ul>
{% for req in page.attendee-requirements %}
<li>{{ req }}</li>
{% endfor %}
</ul>
</p>
{% else %}
<p><span class="font-weight-bold">Attendee Requirements:</span> {{ page.attendee-requirements }}</p>
{% endif %}
{% endif %}
<hr/>
{% endif %}
{% if page.youtube_key %}
<iframe title="{{page.title}}" width="560" height="315" src="https://www.youtube.com/embed/{{ page.youtube_key }}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
{% endif %}
<!-- determine if we should show the speakers block -->
{% assign show_speakers = false %}
{% for speaker_id in page.speakers %}
{% for file_id in site.data.speakers %}
{% if file_id.id == speaker_id %}
{% assign show_speakers = true %}
{% endif %}
{% endfor %}
{% endfor %}
{% if page.link %}
<a class="btn ct-btn-light" href="{{ page.link }}">Recording</a>
{% endif %}
{% if show_speakers %}
<h2>Speaker(s)</h2>
<div class="row">
<div class="col-12 d-flex flex-wrap">
{% for speaker_id in page.speakers %}
{% assign speaker = site.data.speakers | where: 'id', speaker_id | first %}
{% if speaker %}
<div class="col-sm-3 text-center">
<a class="speaker-link" href="/speakers/#{{ speaker.id }}-id">
{% if speaker.image_alt and speaker.image_src %}
<img class="clip-circle-speaker" src="{{ speaker.image_src }}" alt="{{ speaker.image_alt }}">
{% elsif speaker.image_src %}
<img class="clip-circle-speaker" src="{{ speaker.image_src }}" alt="Profile image for {{ speaker.name | escape }}">
{% else %}
<script>
placeholderImage("clip-circle-speaker",
" {{ speaker.name | escape }} ",
"/assets/img/nopics/nopic#.jpg",
"Random placeholder for {{ speaker.name | escape }}",
10);
</script>
{% endif %}
<span>{{ speaker.name }}</span>
</a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
<br>
{% comment %} poster sessions have no speaker data, only text {% endcomment %}
{% elsif page.type == 'poster' and page.speakers-text != '' %}
<h2>Presenter(s): {{ page.speakers-text }}</h2>
<br>
{% endif %}
{% if page.type == 'workshop' and page.location != nil %}
<div class="col-12 col-sm-8 col-md-9">
<h2>Location</h2>
<div style="margin: auto auto 1em; max-width: 600px;" class="embed-responsive embed-responsive-4by3">
<iframe title="workshop location" src="{{ location.embed_code }}"></iframe>
</div>
{% if location.floor_plan != nil %}
<p class="text-center">
<a class="btn ct-btn-light" href="{{ location.floor_plan }}" target="_blank">Floor Plan</a>
</p>
{% endif %}
</div>
{% endif %}
</div>
<div class="col-12 col-sm-4 col-md-3 text-center">
<div class="row talk-detail-box">
<!-- date -->
<div class="col-12 col-sm-12 col-md-12">
{% if page.type == 'talk' or page.type == 'key-open' or page.type == 'key-close' %}
<div class="talk-box-detail-icon"><span class="glyphicon glyphicon-calendar"></span></div>
<div class="talk-box-detail-value"> <a href="/schedule/day-{{page.day}}">{{ page_date | date: "%B %e" }}{% include date_ordinals.html date=page_date %}</a></div>
{% elsif page.type == 'poster'%}
<div class="talk-box-detail-icon"><span class="glyphicon glyphicon-calendar"></span></div>
<div class="talk-box-detail-value"> <a href="/posters">{{ page_date | date: "%B %e" }}{% include date_ordinals.html date=page_date %}</a></div>
{% else %}
<div class="talk-box-detail-icon"><span class="glyphicon glyphicon-calendar"></span></div>
<div class="talk-box-detail-value"> <a href="/workshops">{{ page_date | date: "%B %e" }}{% include date_ordinals.html date=page_date %}</a></div>
{% endif %}
</div>
<!-- time of day for presentations -->
{% if page.type == 'workshop' %}
<div class="col-12 col-sm-12 col-md-12 time-slot">
<div class="talk-box-detail-icon"><span class="glyphicon glyphicon-time"></span></div>
<div class="talk-box-detail-value">{{ page_length }}
<br/><div class="timezone info-box">{{ site.data.conf.timezone }} Time</div>
</div>
</div>
{% elsif page.type == 'poster' %}
<div class="col-12 col-sm-12 col-md-12 time-slot">
<div class="talk-box-detail-icon"><span class="glyphicon glyphicon-time"></span></div>
<div class="talk-box-detail-value">{{ page.startTime | date: "%l:%M %p" }}</div>
</div>
{% endif %}
<!-- building for in-person workshops -->
{% if page.type == 'workshop' %}
<div class="col-12 col-sm-12 col-md-12 time-length">
{% if location != nil %}
<div class="talk-box-detail-icon"><span class="glyphicon glyphicon-map-marker"></span></div>
<div class="talk-box-detail-value">
{{ location_display }}
</div>
{% endif %}
<div>
<a class="back-workshops" href="/workshops">⇦ Return to Workshop List</a>
</div>
</div>
{% elsif page.type == 'poster' %}
<div class="col-12 col-sm-12 col-md-12 time-length">
<div class="talk-box-detail-icon"><span class="glyphicon glyphicon-map-marker"></span></div>
<div class="talk-box-detail-value">
{{ page.location }}
</div>
</div>
{% endif %}
<!-- group -->
{% if page.type == 'talk' or page.type == 'key-open' or page.type == 'key-close' %}
{% assign group_data = site.data.schedule | where:'groupId', page.group %}
{% assign group = group_data | first %}
<div class="col-12 col-sm-12 col-md-12 time-slot">
<!--<h3>Group {{ page.group }}
<p>{{ group.time }}</p></h3>-->
<div class="talk-box-detail-icon"><span class="glyphicon glyphicon-time"></span></div>
<div class="talk-box-detail-value">{{ page.startTime | date: "%l:%M %p" }}</div>
</div>
{% endif %}
<!-- length -->
{% if page.type == 'talk' or page.type == 'key-open' or page.type == 'key-close' %}
<div class="col-12 col-sm-12 col-md-12 time-length">
<!--<h3>Length</h3>
<p>{{ page.length }} minutes</p>-->
<div class="talk-box-detail-icon"><span class="glyphicon glyphicon-hourglass"></span></div>
<div class="talk-box-detail-value"> {{ page.length }} minutes</div>
</div>
{% endif %}
</div>
<!-- slides -->
{% if page.slides %}
<div class="talk-box-detail-value"><a href="{{ page.slides }}" class="btn ct-btn-light btn-lg col-sm-12">
<span class="glyphicon glyphicon-blackboard"></span> View Slides</a></div>
{% endif %}
</div>
</div>
</div>
{% include footer.html %}