forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsession_buttons_include.html
More file actions
371 lines (371 loc) · 23.9 KB
/
Copy pathsession_buttons_include.html
File metadata and controls
371 lines (371 loc) · 23.9 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load static %}
{% load textfilters %}
{% load ietf_filters %}
{% origin %}
{% if item and item|should_show_agenda_session_buttons %}
{% with slug=item.slug %}
{% with session=item.session %}
{% with timeslot=item.timeslot %}
{% with meeting=schedule.meeting %}
{% if session.agenda and show_agenda %}
{# Note: if called with show_agenda=True, calling template must load agenda_materials.js, needed by session_agenda_include.html #}
{% include "meeting/session_agenda_include.html" with slug=slug session=session timeslot=timeslot only %}
{% endif %}
<div id="session-buttons-{{ session.pk }}"
role="group"
class="btn-group btn-group-sm d-none d-lg-flex">
{% with acronym=session.historic_group.acronym %}
{% if session.agenda and show_agenda %}
{# agenda pop-up button #}
<button class="btn btn-outline-primary"
data-bs-toggle="modal" type="button"
data-bs-target="#modal-{{ slug }}"
aria-label="Show meeting materials"
title="Show meeting materials">
<i class="bi bi-arrows-fullscreen"></i>
</button>
{# materials tar file #}
<a class="btn btn-outline-primary"
role="button"
href="/meeting/{{ meeting.number }}/agenda/{{ acronym }}-drafts.tgz"
aria-label="Download meeting materials as .tar archive"
title="Download meeting materials as .tar archive">
<i class="bi bi-file-zip"></i>
</a>
{# materials PDF file #}
<a class="btn btn-outline-primary"
role="button"
href="/meeting/{{ meeting.number }}/agenda/{{ acronym }}-drafts.pdf"
aria-label="Download meeting materials as PDF file"
title="Download meeting materials as PDF file">
<i class="bi bi-file-pdf"></i>
</a>
{% endif %}
{# HedgeDoc #}
{% if use_codimd %}
<a class="btn btn-outline-primary"
role="button"
href="{{ session.notes_url }}"
aria-label="Notepad for note-takers"
title="Notepad for note-takers">
<i class="bi bi-journal-text"></i>
</a>
{% endif %}
{# show stream buttons up till end of session, then show archive buttons #}
{% if now < timeslot.utc_end_time %}
{# Jabber #}
<a class="btn btn-outline-primary"
role="button"
href="xmpp:{{ session.jabber_room_name }}@jabber.ietf.org?join"
aria-label="Chat room for {{ session.jabber_room_name }}"
title="Chat room for {{ session.jabber_room_name }}">
<i class="bi bi-chat"></i>
</a>
{# Video stream (meetecho) #}
{% if timeslot.location.video_stream_url %}
<a class="btn btn-outline-primary"
role="button"
href="{{ timeslot.location.video_stream_url|format:session }}"
aria-label="Video stream"
title="Video stream">
<i class="bi bi-camera-video"></i>
</a>
{% endif %}
{# Onsite tool (meetecho_onsite) #}
{% if timeslot.location.onsite_tool_url %}
<a class="btn btn-outline-primary"
role="button"
href="{{ timeslot.location.onsite_tool_url|format:session }}"
aria-label="Onsite tool"
title="Onsite tool">
<i class="bi bi-phone"></i>
</a>
{% endif %}
{# Audio stream #}
{% if timeslot.location.audio_stream_url %}
<a class="btn btn-outline-primary"
role="button"
href="{{ timeslot.location.audio_stream_url|format:session }}"
aria-label="Audio stream"
title="Audio stream">
<i class="bi bi-headphones"></i>
</a>
{% endif %}
{# Remote call-in #}
{% if session.agenda_note|first_url|conference_url %}
<a class="btn btn-outline-primary"
role="button"
href="{{ session.agenda_note|first_url }}"
aria-label="Online conference"
title="Online conference">
<i class="bi bi-people"></i>
</a>
{% elif session.remote_instructions|first_url|conference_url %}
<a class="btn btn-outline-primary"
role="button"
href="{{ session.remote_instructions|first_url }}"
aria-label="Online conference"
title="Online conference">
<i class="bi bi-people"></i>
</a>
{% elif timeslot.location.webex_url %}
<a class="btn btn-outline-primary"
role="button"
href="{{ timeslot.location.webex_url|format:session }}"
aria-label="Webex session"
title="Webex session">
<i class="bi bi-people"></i>
</a>
{% endif %}
{# iCalendar item #}
<a class="btn btn-outline-primary"
role="button"
href="{% url 'ietf.meeting.views.agenda_ical' num=meeting.number session_id=session.id %}"
aria-label="icalendar entry for {{ acronym }} session on {{ timeslot.utc_start_time|date:'Y-m-d H:i' }} UTC"
title="icalendar entry for {{ acronym }} session on {{ timeslot.utc_start_time|date:'Y-m-d H:i' }} UTC">
<i class="bi bi-calendar"></i>
</a>
{% else %}
{# Jabber logs #}
{% if meeting.number|add:"0" >= 60 %}
<a class="btn btn-outline-primary"
role="button"
href="https://www.ietf.org/jabber/logs/{{ session.jabber_room_name }}?C=M;O=D"
aria-label="Chat logs for {{ session.jabber_room_name }}"
title="Chat logs for {{ session.jabber_room_name }}">
<i class="bi bi-file-text"></i>
</a>
{% endif %}
{# Recordings #}
{% if meeting.number|add:"0" >= 80 %}
{% with session.recordings as recordings %}
{% if recordings %}
{# There's no guaranteed order, so this is a bit messy: #}
{# First, the audio recordings, if any #}
{% for r in recordings %}
{% if r.get_href and 'audio' in r.get_href %}
<a class="btn btn-outline-primary"
role="button"
href="{{ r.get_href }}"
aria-label="{{ r.title }}"
title="{{ r.title }}">
<i class="bi bi-file-play"></i>
</a>
{% endif %}
{% endfor %}
{# Then the youtube recordings #}
{% for r in recordings %}
{% if r.get_href and 'youtu' in r.get_href %}
<a class="btn btn-outline-primary"
role="button"
href="{{ r.get_href }}"
aria-label="{{ r.title }}"
title="{{ r.title }}">
<i class="bi bi-file-slides"></i>
</a>
{% endif %}
{% endfor %}
{# Finally, any other recordings #}
{% for r in recordings %}
{% if r.get_href and not 'audio' in r.get_href and not 'youtu' in r.get_href %}
<a class="btn btn-outline-primary"
role="button"
href="{{ r.get_href }}"
aria-label="{{ r.title }}"
title="{{ r.title }}">
<i class="bi bi-file-play"></i>
</a>
{% endif %}
{% endfor %}
{% endif %}
{% endwith %}
{% if timeslot.location.video_stream_url %}
<a class="btn btn-outline-primary"
role="button"
href="https://www.meetecho.com/ietf{{ meeting.number }}/recordings#{{ acronym.upper }}"
aria-label="Session recording"
title="Session recording">
<i class="bi bi-file-slides"></i>
</a>
{% endif %}
{% endif %}
{% endif %}
{% endwith %}
</div>
<div class="dropdown d-lg-none">
<button class="btn btn-outline-primary btn-sm dropdown-toggle"
type="button"
aria-label="Info"
id="session-buttons-dropdown-{{ session.pk }}"
data-bs-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false">
<i class="bi bi-info-lg"></i>
</button>
<ul class="dropdown-menu"
aria-labelledby="session-buttons-dropdown-{{ session.pk }}">
{% with acronym=session.historic_group.acronym %}
{% if session.agenda and show_agenda %}
{# agenda pop-up button #}
<li>
<button class="dropdown-item" type="button"
data-bs-toggle="modal"
data-bs-target="#modal-{{ slug }}">
<i class="bi bi-arrows-fullscreen"></i> Show meeting materials
</button>
</li>
{# materials tar file #}
<li>
<a class="dropdown-item"
href="/meeting/{{ meeting.number }}/agenda/{{ acronym }}-drafts.tgz">
<i class="bi bi-file-zip"></i> Meeting materials archive
</a>
</li>
{# materials PDF file #}
<li>
<a class="dropdown-item"
href="/meeting/{{ meeting.number }}/agenda/{{ acronym }}-drafts.pdf">
<i class="bi bi-file-pdf"></i> Meeting materials PDF
</a>
</li>
{% endif %}
{# HedgeDoc #}
{% if use_codimd %}
<li>
<a class="dropdown-item" href="{{ session.notes_url }}">
<i class="bi bi-journal-text"></i> Notepad for note-takers
</a>
</li>
{% endif %}
{# show stream buttons up till end of session, then show archive buttons #}
{% if now < timeslot.utc_end_time %}
{# Jabber #}
<li>
<a class="dropdown-item"
href="xmpp:{{ session.jabber_room_name }}@jabber.ietf.org?join">
<i class="bi bi-chat"></i> Chat room
</a>
</li>
{# Video stream (meetecho) #}
{% if timeslot.location.video_stream_url %}
<li>
<a class="dropdown-item"
href="{{ timeslot.location.video_stream_url|format:session }}">
<i class="bi bi-camera-video"></i> Video stream
</a>
</li>
{% endif %}
{# Onsite tool (meetecho_onsite) #}
{% if timeslot.location.onsite_tool_url %}
<li>
<a class="dropdown-item"
href="{{ timeslot.location.onsite_tool_url|format:session }}">
<i class="bi bi-phone"></i> Onsite tool
</a>
</li>
{% endif %}
{# Audio stream #}
{% if timeslot.location.audio_stream_url %}
<li>
<a class="dropdown-item"
href="{{ timeslot.location.audio_stream_url|format:session }}">
<i class="bi bi-headphones"></i> Audio stream
</a>
</li>
{% endif %}
{# Remote call-in #}
{% if session.agenda_note|first_url|conference_url %}
<li>
<a class="dropdown-item" href="{{ session.agenda_note|first_url }}">
<i class="bi bi-people"></i> Online conference
</a>
</li>
{% elif session.remote_instructions|first_url|conference_url %}
<li>
<a class="dropdown-item"
href="{{ session.remote_instructions|first_url }}">
<i class="bi bi-people"></i> Online conference
</a>
</li>
{% elif timeslot.location.webex_url %}
<li>
<a class="dropdown-item"
href="{{ timeslot.location.webex_url|format:session }}">
<i class="bi bi-people"></i> Webex session
</a>
</li>
{% endif %}
{# iCalendar item #}
<li>
<a class="dropdown-item"
href="{% url 'ietf.meeting.views.agenda_ical' num=meeting.number session_id=session.id %}">
<i class="bi bi-calendar"></i> Add to calendar
</a>
</li>
{% else %}
{# Jabber logs #}
{% if meeting.number|add:"0" >= 60 %}
<li>
<a class="dropdown-item"
href="https://www.ietf.org/jabber/logs/{{ session.jabber_room_name }}?C=M;O=D">
<i class="bi bi-file-text"></i> Chat logs
</a>
</li>
{% endif %}
{# Recordings #}
{% if meeting.number|add:"0" >= 80 %}
{% with session.recordings as recordings %}
{% if recordings %}
{# There's no guaranteed order, so this is a bit messy: #}
{# First, the audio recordings, if any #}
{% for r in recordings %}
{% if r.get_href and 'audio' in r.get_href %}
<li>
<a class="dropdown-item" href="{{ r.get_href }}">
<i class="bi bi-file-play"></i> {{ r.title }}
</a>
</li>
{% endif %}
{% endfor %}
{# Then the youtube recordings #}
{% for r in recordings %}
{% if r.get_href and 'youtu' in r.get_href %}
<li>
<a class="dropdown-item" href="{{ r.get_href }}">
<i class="bi bi-file-slides"></i> {{ r.title }}
</a>
</li>
{% endif %}
{% endfor %}
{# Finally, any other recordings #}
{% for r in recordings %}
{% if r.get_href and not 'audio' in r.get_href and not 'youtu' in r.get_href %}
<li>
<a class="dropdown-item" href="{{ r.get_href }}">
<i class="bi bi-file-play"></i> {{ r.title }}
</a>
</li>
{% endif %}
{% endfor %}
{% endif %}
{% endwith %}
{% if timeslot.location.video_stream_url %}
<li>
<a class="dropdown-item"
href="https://www.meetecho.com/ietf{{ meeting.number }}/recordings#{{ acronym.upper }}">
<i class="bi bi-file-slides"></i> Session recording
</a>
</li>
{% endif %}
{% endif %}
{% endif %}
{% endwith %}
</ul>
</div>
{% endwith %}
{% endwith %}
{% endwith %}
{% endwith %}
{% endif %}