jekyll-theme-conference 5.2.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +100 -50
  3. data/UPGRADE_GUIDE.md +16 -1
  4. data/_data/conference_assets.yml +3 -3
  5. data/_data/lang.yml +67 -39
  6. data/_includes/checks.html +9 -1
  7. data/_includes/conference_config.json +4 -4
  8. data/_includes/embed_consent.html +1 -1
  9. data/_includes/footer.html +3 -1
  10. data/_includes/get_edition.html +15 -0
  11. data/_includes/get_link.html +1 -1
  12. data/_includes/get_link_active.html +3 -1
  13. data/_includes/get_link_tag_streaming.html +22 -4
  14. data/_includes/get_live_icon.html +5 -1
  15. data/_includes/get_menu.html +2 -2
  16. data/_includes/get_page_title.html +2 -2
  17. data/_includes/get_pwa_icon.html +10 -0
  18. data/_includes/get_pwa_in.html +26 -0
  19. data/_includes/header.html +4 -5
  20. data/_includes/icon.html +12 -3
  21. data/_includes/infobox.html +6 -6
  22. data/_includes/list_header_pwa.html +15 -11
  23. data/_includes/modal_link.html +4 -3
  24. data/_includes/modal_live.html +5 -52
  25. data/_includes/navbar.html +4 -3
  26. data/_includes/navbar_pwa.html +200 -21
  27. data/_includes/pwa_install.html +4 -4
  28. data/_includes/pwa_toasts.html +39 -0
  29. data/_includes/show_link_buttons.html +1 -1
  30. data/_includes/show_menu_items.html +5 -3
  31. data/_includes/show_stream.html +63 -0
  32. data/_layouts/htaccess.html +20 -7
  33. data/_layouts/json-site.html +15 -1
  34. data/_layouts/live.html +26 -0
  35. data/_layouts/location.html +1 -1
  36. data/_layouts/manifest.html +12 -10
  37. data/_layouts/not-found.html +23 -0
  38. data/_layouts/program.html +1 -1
  39. data/_layouts/speaker.html +1 -1
  40. data/_layouts/sw.js +141 -29
  41. data/_sass/bootstrap.scss +1 -0
  42. data/_sass/theme.scss +236 -107
  43. data/assets/css/conference-only.bundle.css +1 -1
  44. data/assets/css/conference.bundle.css +1 -1
  45. data/assets/js/conference.bundle.js +2 -2
  46. metadata +7 -3
  47. data/_includes/pwa_banner.html +0 -29
  48. data/_layouts/stream-overview.html +0 -45
@@ -63,7 +63,7 @@
63
63
  "soon": {{ lang.live.time.soon | default: "soon" | jsonify }},
64
64
  "now": {{ lang.live.time.now | default: "now" | jsonify }},
65
65
  "in": {{ lang.live.time.in | default: "in" | append: " " | jsonify }},
66
- "since": {{ lang.live.time.since | default: "since" | append: " " | jsonify }},
66
+ "since": {{ lang.live.time.since | default: "for" | append: " " | jsonify }},
67
67
  "weeks": {{ lang.live.time.weeks | default: "weeks" | jsonify }},
68
68
  "week": {{ lang.live.time.week | default: "week" | jsonify }},
69
69
  "days": {{ lang.live.time.days | default: "days" | jsonify }},
@@ -75,9 +75,9 @@
75
75
  }
76
76
  },
77
77
  "stream": {
78
- "pre_stream": {{ lang.live.pre_stream | default: "Live stream has not started yet." | jsonify }},
79
- "post_stream": {{ lang.live.post_stream | default: "Live stream has ended." | jsonify }},
80
- "pause_stream": {{ lang.live.pause_stream | default: "Live stream is currently paused." | jsonify }}
78
+ "pre_stream": {{ lang.live.pre_stream | default: "The live stream hasn't started yet." | jsonify }},
79
+ "post_stream": {{ lang.live.post_stream | default: "The live stream has ended." | jsonify }},
80
+ "pause_stream": {{ lang.live.pause_stream | default: "The live stream is paused." | jsonify }}
81
81
  }
82
82
  }
83
83
  }
@@ -11,7 +11,7 @@
11
11
  <div class="embed-consent d-flex flex-column justify-content-center align-items-center text-center p-4 bg-body-tertiary{% if include.hidden %} d-none{% endif %}" data-embed-consent>
12
12
  <p class="mb-3">
13
13
  {{ embed_lang.privacy | default: "This content is loaded from an external provider, which receives your IP address:" }}
14
- <a href="{{ include.href | escape }}" rel="noopener" data-embed-host>{{ embed_host[2] | escape }}</a>
14
+ <a href="{{ include.href | escape }}" class="link-body-emphasis" rel="noopener" data-embed-host>{{ embed_host[2] | escape }}</a>
15
15
  </p>
16
16
  <button type="button" class="consent-button btn btn-primary" data-embed-load>
17
17
  {% include icon.html name="play-fill" %}
@@ -2,13 +2,15 @@
2
2
  </main>
3
3
 
4
4
  <footer class="footer-pwa">
5
+ {%- include pwa_toasts.html -%}
5
6
  {%- include navbar_pwa.html -%}
6
7
  </footer>
8
+ {{- pwa_sheets }}
7
9
 
8
10
  {%- include modal_link.html -%}
9
11
  {%- include pwa_install.html -%}
10
12
 
11
- {%- if edition_live.streaming.enable -%}
13
+ {%- if edition_live.streaming.enable and page.layout != "live" -%}
12
14
  {%- include modal_live.html -%}
13
15
  {%- endif -%}
14
16
 
@@ -17,6 +17,8 @@
17
17
  edition_info_bars, edition_info_modals, edition_tracks, edition_tags:
18
18
  the edition's setting, else the site's
19
19
  - edition_live: `conference.live` on the current edition, else nil
20
+ - edition_live_page: with streaming, the edition's page with `layout:
21
+ live`, else nil
20
22
  {%- endcomment -%}
21
23
  {%- assign edition = nil -%}
22
24
  {%- assign edition_config = nil -%}
@@ -83,3 +85,16 @@
83
85
  {%- if edition_current -%}
84
86
  {%- assign edition_live = site.conference.live -%}
85
87
  {%- endif -%}
88
+
89
+ {%- assign edition_live_page = nil -%}
90
+ {%- if edition_live.streaming.enable -%}
91
+ {%- assign edition_key = edition | append: "" -%}
92
+ {%- assign live_pages = site.pages | where: "layout", "live" -%}
93
+ {%- for live_page in live_pages -%}
94
+ {%- assign live_page_edition = live_page.edition | append: "" -%}
95
+ {%- if live_page_edition == edition_key -%}
96
+ {%- assign edition_live_page = live_page -%}
97
+ {%- break -%}
98
+ {%- endif -%}
99
+ {%- endfor -%}
100
+ {%- endif -%}
@@ -141,7 +141,7 @@
141
141
 
142
142
  {%- elsif link.live -%}
143
143
  {%- if edition_live and edition_live.streaming.enable -%}
144
- {% include get_link_tag_streaming.html class=link_class %}
144
+ {% include get_link_tag_streaming.html class=link_class is_active=include.is_active %}
145
145
  {%- else-%}
146
146
  <a
147
147
  class="{{ link_class }}"
@@ -1,7 +1,7 @@
1
1
  {%- comment -%}
2
2
  Whether the navigation link `link` leads to the current page or its
3
3
  section, e.g. /talks/ on /talks/x/; room pages belong to the location
4
- page. Sets is_active.
4
+ page, live links to the live page. Sets is_active.
5
5
  {%- endcomment -%}
6
6
  {%- assign link_url = nil -%}
7
7
  {%- if link.relative_url -%}
@@ -12,6 +12,8 @@
12
12
  {%- assign is_active = true -%}
13
13
  {%- elsif page.layout == "room" and location_url and link_url == location_url -%}
14
14
  {%- assign is_active = true -%}
15
+ {%- elsif link.live and page.layout == "live" -%}
16
+ {%- assign is_active = true -%}
15
17
  {%- else -%}
16
18
  {%- assign is_active = false -%}
17
19
  {%- endif -%}
@@ -1,4 +1,4 @@
1
- {%- assign stream_label = site.data.lang[site.conference.lang].live.stream | default: "Live Stream" -%}
1
+ {%- assign stream_label = site.data.lang[site.conference.lang].live.stream | default: "Live stream" -%}
2
2
 
3
3
  {%- if edition_live.streaming.external -%}
4
4
  <a
@@ -12,13 +12,31 @@
12
12
  {%- else -%}
13
13
  {% assign data_room = edition_rooms | first %}
14
14
  {%- endif -%}
15
+
16
+ {%- comment -%}
17
+ The live page with the room, e.g. /live/?room=Room+A (the app opens it
18
+ instead of the modal, see _js/modules/stream.js); on it, no modal
19
+ {%- endcomment -%}
20
+ {%- assign stream_href = "#" -%}
21
+ {%- if edition_live_page -%}
22
+ {%- assign stream_href = edition_live_page.url | prepend: site.baseurl -%}
23
+ {%- if r -%}
24
+ {%- assign room_param = r.name | url_encode -%}
25
+ {%- assign stream_href = stream_href | append: "?room=" | append: room_param -%}
26
+ {%- endif -%}
27
+ {%- endif -%}
15
28
  <a
16
- class="{{ include.class }}"
17
- href="#"
29
+ class="{{ include.class }}{% if include.is_active %} active{% endif %}"
30
+ href="{{ stream_href | escape }}"
18
31
  title="{{ stream_label }}"
32
+ {%- if include.is_active %}
33
+ aria-current="page"
34
+ {%- endif %}
35
+ {%- unless page.layout == "live" %}
19
36
  data-bs-toggle="modal"
20
37
  data-bs-target="#stream-modal"
21
- data-room="{{ data_room.name | escape }}"
22
38
  aria-haspopup="dialog"
39
+ {%- endunless %}
40
+ data-room="{{ data_room.name | escape }}"
23
41
  >
24
42
  {%- endif -%}
@@ -1,5 +1,7 @@
1
1
  {%- assign live_label = site.data.lang[site.conference.lang].live.live | default: "Live" -%}
2
+ {%- unless include.icon_only -%}
2
3
  <span class="live-button py-1 px-2 rounded {{ include.class }}">
4
+ {%- endunless -%}
3
5
  <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 11 11" class="live-icon align-baseline bi" aria-hidden="true" focusable="false" role="img">
4
6
  <!--
5
7
  The following SVG icon is based on https://github.com/twbs/icons/blob/main/icons/rss.svg
@@ -10,5 +12,7 @@
10
12
  <path class="live-icon-arc-medium" d="M 0,5 C 0,4.4477153 0.4477153,4 1,4 4.3137085,4 7,6.6862915 7,10 7,11.333333 5,11.333333 5,10 5,7.790861 3.209139,6 1,6 0.4477153,6 0,5.5522847 0,5" />
11
13
  <path class="live-icon-arc-large" d="M 0,1 C 0,0.4477153 0.4477153,0 1,0 6.523,0 11,4.477 11,10 11,11.333333 9,11.333333 9,10 9,5.581722 5.418278,2 1,2 0.4477153,2 0,1.5522847 0,1" />
12
14
  </svg>
15
+ {%- unless include.icon_only -%}
13
16
  <span>{{ live_label }}</span>
14
- </span>
17
+ </span>
18
+ {%- endunless -%}
@@ -19,9 +19,9 @@
19
19
  {%- assign menu_empty = false -%}
20
20
 
21
21
  {%- if menu_links == "editions" -%}
22
- {%- if site.conference.editions.size < 2 -%}
22
+ {%- unless site.conference.editions.size > 1 -%}
23
23
  {%- assign menu_empty = true -%}
24
- {%- endif -%}
24
+ {%- endunless -%}
25
25
  {%- assign menu_name = menu_name | default: edition_nav_editions.name -%}
26
26
  {%- unless menu_name -%}
27
27
  {%- assign menu_name = edition -%}
@@ -16,8 +16,8 @@
16
16
  {{- site.data.lang[site.conference.lang].program.title | default: "Program" -}}
17
17
  {%- elsif page.layout == 'speaker-overview' -%}
18
18
  {{- site.data.lang[site.conference.lang].speaker.overview | default: "Speakers" -}}
19
- {%- elsif page.layout == 'stream-overview' -%}
20
- {{ site.data.lang[site.conference.lang].live.stream | default: "Live Streams" }}
19
+ {%- elsif page.layout == 'live' -%}
20
+ {{- site.data.lang[site.conference.lang].live.stream | default: "Live stream" -}}
21
21
  {%- elsif page.layout == 'talk-overview' -%}
22
22
  {{- site.data.lang[site.conference.lang].talk.overview | default: "Talks" -}}
23
23
  {%- endif -%}
@@ -0,0 +1,10 @@
1
+ {%- comment -%}
2
+ Address of an icon of the app (`pwa.icons`: a file name or an object with
3
+ `img`, below /assets/images/), else of the first one: pwa_icon_url, e.g.
4
+ "/assets/images/icon.png"; nil without icons. Input: include.icon
5
+ {%- endcomment -%}
6
+ {%- assign pwa_icon = include.icon | default: site.conference.pwa.icons.first -%}
7
+ {%- assign pwa_icon_url = nil -%}
8
+ {%- if pwa_icon -%}
9
+ {%- assign pwa_icon_url = pwa_icon.img | default: pwa_icon | prepend: "/assets/images/" | prepend: site.baseurl -%}
10
+ {%- endif -%}
@@ -0,0 +1,26 @@
1
+ {%- comment -%}
2
+ States of the app's tab bar (pwa_states, e.g. "4-live": four tabs, during
3
+ live) in which the entry at pwa_index is a tab or in "More", given the
4
+ tabs per state (pwa_counts), as attributes: pwa_tab_attr and
5
+ pwa_more_attr, e.g. ' data-pwa-in="5 5-live"' and ' data-pwa-in="4
6
+ 4-live"'; empty where it is in all states.
7
+ {%- endcomment -%}
8
+ {%- assign pwa_tab_in = "" | split: "" -%}
9
+ {%- assign pwa_more_in = "" | split: "" -%}
10
+ {%- for pwa_count in pwa_counts -%}
11
+ {%- if pwa_index < pwa_count -%}
12
+ {%- assign pwa_tab_in = pwa_tab_in | push: pwa_states[forloop.index0] -%}
13
+ {%- else -%}
14
+ {%- assign pwa_more_in = pwa_more_in | push: pwa_states[forloop.index0] -%}
15
+ {%- endif -%}
16
+ {%- endfor -%}
17
+
18
+ {%- assign pwa_tab_attr = "" -%}
19
+ {%- if pwa_more_in.size > 0 -%}
20
+ {%- assign pwa_tab_attr = pwa_tab_in | join: " " | prepend: ' data-pwa-in="' | append: '"' -%}
21
+ {%- endif -%}
22
+
23
+ {%- assign pwa_more_attr = "" -%}
24
+ {%- if pwa_tab_in.size > 0 -%}
25
+ {%- assign pwa_more_attr = pwa_more_in | join: " " | prepend: ' data-pwa-in="' | append: '"' -%}
26
+ {%- endif -%}
@@ -1,10 +1,10 @@
1
1
  {%- include get_edition.html -%}
2
2
  <!DOCTYPE html>
3
- <html lang="{{ site.conference.lang | default: 'en' }}">
3
+ <html lang="{{ site.conference.lang | default: 'en' }}"{% if site.conference.pwa.enable %} data-pwa-enable{% endif %}>
4
4
 
5
5
  <head>
6
6
  <meta charset="utf-8" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
8
8
 
9
9
  {% include get_page_title.html -%}
10
10
  <title>
@@ -36,14 +36,13 @@
36
36
  Before the first paint (no flash): colour mode and installed app (PWA).
37
37
  Static content, i.e. one hash for a Content Security Policy (see README).
38
38
  {%- endcomment %}
39
- <script>{ const root = document.documentElement; root.dataset.bsTheme = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; root.dataset.pwa = !!document.querySelector('link[rel="manifest"]') && (navigator.standalone === true || matchMedia("(display-mode: standalone)").matches); }</script>
39
+ <script>{ const root = document.documentElement; root.dataset.bsTheme = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; root.dataset.pwa = "pwaEnable" in root.dataset && (navigator.standalone === true || matchMedia("(display-mode: standalone)").matches); }</script>
40
40
  </head>
41
41
 
42
42
  <body class="min-vh-100">
43
43
  <a href="#main" class="visually-hidden-focusable position-absolute top-0 start-0">
44
44
  {{ site.data.lang[site.conference.lang].navigation.skip_to_content | default: "Skip to content" }}
45
45
  </a>
46
- {%- include pwa_banner.html %}
47
46
  <header>
48
47
  <!-- navigation bar (web only): -->
49
48
  {%- include navbar.html -%}
@@ -59,6 +58,6 @@
59
58
  {%- endunless -%}
60
59
 
61
60
  </header>
62
- <main id="main" class="container my-3" role="main" tabindex="-1">
61
+ <main id="main" class="container my-3" tabindex="-1">
63
62
 
64
63
  {%- include infobox.html -%}
data/_includes/icon.html CHANGED
@@ -1,17 +1,26 @@
1
1
  {%- comment -%}
2
2
  Inline Bootstrap Icon as SVG, rendered at build time (no icon font), e.g.
3
3
  {% include icon.html name="clock" class="me-1" %}. Unknown names render nothing.
4
+ With fill=true, its filled variant where there is one (e.g. clock-fill).
4
5
  {%- endcomment -%}
5
6
  {%- unless icon_names -%}
6
7
  {%- capture icon_names -%}{%- include icons/_names.txt -%}{%- endcapture -%}
7
8
  {%- endunless -%}
8
9
 
9
- {%- assign icon_key = include.name | prepend: "," | append: "," -%}
10
- {%- if include.name and icon_names contains icon_key -%}
10
+ {%- assign icon_name = include.name -%}
11
+ {%- if include.fill -%}
12
+ {%- assign icon_key = include.name | append: "-fill" | prepend: "," | append: "," -%}
13
+ {%- if icon_names contains icon_key -%}
14
+ {%- assign icon_name = include.name | append: "-fill" -%}
15
+ {%- endif -%}
16
+ {%- endif -%}
17
+
18
+ {%- assign icon_key = icon_name | prepend: "," | append: "," -%}
19
+ {%- if icon_name and icon_names contains icon_key -%}
11
20
  {%- if include.class -%}
12
21
  {%- assign icon_class = include.class | prepend: " " -%}
13
22
  {%- else -%}
14
23
  {%- assign icon_class = "" -%}
15
24
  {%- endif -%}
16
- {%- include icons/{{ include.name }}.svg -%}
25
+ {%- include icons/{{ icon_name }}.svg -%}
17
26
  {%- endif -%}
@@ -2,10 +2,10 @@
2
2
  {%- include checks.html -%}
3
3
  {%- if errors.size > 0 -%}
4
4
  {%- for error in errors %}
5
- <div class="alert alert-danger fade show" role="alert">
6
- <h5 class="alert-heading">There was an error when generating the site!</h5>
5
+ <div class="alert alert-danger fade show">
6
+ <p class="alert-heading h5">There was an error when generating the site!</p>
7
7
 
8
- {{ error | markdownify }}
8
+ {{ error | markdownify | replace: "<a href=", "<a class='alert-link' href=" }}
9
9
  </div>
10
10
  {%- endfor -%}
11
11
  {%- endif -%}
@@ -30,13 +30,13 @@
30
30
  {%- assign dismissal_days = infobar.dismissal_days | default: 7 -%}
31
31
  {%- if dismissal_days > 0 -%}
32
32
  {%- assign infobar_id = infobar.title | default: '' | append: infobar.text | slugify -%}
33
- <div class="alert alert-{{ infobar.color }} alert-dismissible fade show" role="alert" data-infobar-id="{{ infobar_id }}" data-infobar-dismiss="{{ dismissal_days | times: 86400 }}">
33
+ <div class="alert alert-{{ infobar.color }} alert-dismissible fade show" data-infobar-id="{{ infobar_id }}" data-infobar-dismiss="{{ dismissal_days | times: 86400 }}">
34
34
  {%- else -%}
35
- <div class="alert alert-{{ infobar.color }} fade show" role="alert">
35
+ <div class="alert alert-{{ infobar.color }} fade show">
36
36
  {%- endif -%}
37
37
 
38
38
  {%- if infobar.title %}
39
- <h4 class="alert-heading">{{ infobar.title }}</h4>
39
+ <p class="alert-heading h4">{{ infobar.title }}</p>
40
40
  {%- endif %}
41
41
 
42
42
  {{ infobar.text | markdownify | replace: "<a href=", "<a class='alert-link' href=" }}
@@ -1,21 +1,25 @@
1
1
  {%- if site.conference.pwa and site.conference.pwa.enable -%}
2
2
  {%- assign pwa_theme_color = site.conference.pwa.theme_color | default: "#0d6efd" -%}
3
- {%- assign pwa_icon = site.conference.pwa.icons | first -%}
4
3
 
4
+ {%- if site.conference.pwa.theme_color_dark %}
5
+ <meta name="theme-color" content="{{ pwa_theme_color }}" media="(prefers-color-scheme: light)" />
6
+ <meta name="theme-color" content="{{ site.conference.pwa.theme_color_dark }}" media="(prefers-color-scheme: dark)" />
7
+ {%- else %}
8
+ <meta name="theme-color" content="{{ pwa_theme_color }}" />
9
+ {%- endif %}
10
+
11
+ {%- comment -%}
12
+ On every edition, as iOS adds any page to the home screen: the app then
13
+ starts at the current edition, not the archive (see _layouts/manifest.html)
14
+ {%- endcomment %}
5
15
  <link rel="manifest" href="{{ site.baseurl }}/manifest.json" />
6
16
  <meta name="mobile-web-app-capable" content="yes" />
7
- <meta name="theme-color" content="{{ pwa_theme_color }}" />
8
17
  <meta name="apple-mobile-web-app-capable" content="yes" />
9
18
  <meta name="apple-mobile-web-app-status-bar-style" content="default" />
10
- <meta name="apple-mobile-web-app-title" content="{{ edition_title }}" />
19
+ <meta name="apple-mobile-web-app-title" content="{{ site.title }}" />
11
20
 
12
- {% if site.conference.pwa.icons -%}
13
- {%- assign icon = site.conference.pwa.icons | first -%}
14
- {%- if icon.first == nil -%}
15
- {%- assign icon_src = icon -%}
16
- {%- else -%}
17
- {%- assign icon_src = icon.img -%}
18
- {%- endif -%}
19
- <link rel="apple-touch-icon" href="{{ icon_src | prepend: '/assets/images/' | prepend: site.baseurl }}" />
21
+ {% include get_pwa_icon.html -%}
22
+ {%- if pwa_icon_url -%}
23
+ <link rel="apple-touch-icon" href="{{ pwa_icon_url }}" />
20
24
  {%- endif -%}
21
25
  {%- endif -%}
@@ -1,19 +1,20 @@
1
1
  <div class="modal fade" id="link-modal" tabindex="-1" aria-labelledby="link-modal-label" aria-describedby="link-modal-description" aria-hidden="true" role="dialog">
2
- <div class="modal-dialog modal-dialog-centered modal-lg">
2
+ <div class="modal-dialog modal-dialog-centered modal-lg modal-fullscreen-sm-down">
3
3
  <div class="modal-content">
4
4
  <div class="modal-header">
5
5
  <div class="modal-title">
6
- <h2 class="talk-title h3 mb-2" id="link-modal-label"></h2>
6
+ <h2 class="talk-title h3 mb-2 text-break" id="link-modal-label"></h2>
7
7
  <p class="talk-speakers mb-0 d-none" id="link-modal-description"></p>
8
8
  </div>
9
9
  <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{{ site.data.lang[site.conference.lang].close | default: 'Close' }}"></button>
10
10
  </div>
11
11
  <div class="modal-body ratio ratio-16x9">
12
- <iframe referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="{{ site.data.lang[site.conference.lang].more_information | default: 'More Information' }}"></iframe>
12
+ <iframe referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="{{ site.data.lang[site.conference.lang].more_information | default: 'More information' }}"></iframe>
13
13
  {%- include embed_consent.html hidden=true %}
14
14
  </div>
15
15
  <div class="modal-footer justify-content-start">
16
16
  <p></p>
17
+ <button type="button" class="btn btn-secondary w-100 d-sm-none" data-bs-dismiss="modal">{{ site.data.lang[site.conference.lang].close | default: 'Close' }}</button>
17
18
  </div>
18
19
  </div>
19
20
  </div>
@@ -1,68 +1,21 @@
1
1
  {%- assign live_lang = site.data.lang[site.conference.lang].live -%}
2
2
  <div class="modal fade" id="stream-modal" tabindex="-1" aria-labelledby="stream-modal-title" aria-describedby="stream-modal-desc" aria-hidden="true" role="dialog">
3
- <div class="modal-dialog modal-lg">
3
+ <div class="modal-dialog modal-lg modal-fullscreen-sm-down">
4
4
  <div class="modal-content">
5
5
 
6
6
  <div class="modal-header">
7
7
  <h2 class="modal-title h5" id="stream-modal-title">
8
- {{ live_lang.stream | default: "Live Stream" }}
8
+ {{ live_lang.stream | default: "Live stream" }}
9
9
  </h2>
10
10
  <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{{ site.data.lang[site.conference.lang].close | default: 'Close' }}"></button>
11
11
  </div>
12
12
 
13
- <div class="modal-body ratio ratio-16x9">
14
- <iframe referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="{{ live_lang.stream | default: 'Live Stream' }}"></iframe>
15
- {%- include embed_consent.html hidden=true click_to_load=edition_live.streaming.click_to_load %}
16
- <div id="stream-placeholder" class="d-none justify-content-center align-items-center" role="status" aria-live="polite" aria-atomic="true">
17
- <div id="stream-modal-desc"></div>
18
- <div id="stream-offline" class="d-none">
19
- {% include icon.html name="wifi-off" %} {{ live_lang.offline | default: "offline" }}
20
- </div>
21
- </div>
22
- </div>
23
-
24
- <div class="modal-footer flex-column justify-content-start d-none" id="stream-info">
25
- <div class="align-self-start live-time my-0 small" id="stream-info-time" data-time=""></div>
26
- <div class="align-self-start ps-2 border-start border-4" id="stream-info-color">
27
- <p class="mb-0">
28
- <a class="talk-title text-reset link-underline-opacity-0 link-underline-opacity-100-hover" href="#" id="stream-info-talk"></a>
29
- </p>
30
- <p class="talk-speakers mb-0" id="stream-info-speakers"></p>
31
- </div>
32
- <div class="align-self-center m-0 mt-1 d-none" id="stream-info-links"></div>
33
- </div>
13
+ {%- include show_stream.html class_body="modal-body" class_footer="modal-footer" %}
34
14
 
35
- <div class="modal-footer justify-content-around">
36
- {%- for room in edition_rooms -%}
37
- <button type="button" id="stream-button{{ forloop.index }}" class="btn btn-outline-primary d-none d-sm-inline" data-room="{{ room.name | escape }}" aria-pressed="false"{% unless room.live %} disabled{% endunless %}>
38
- {{ room.name | escape }}
39
- </button>
40
- {%- endfor %}
41
- <div class="w-100 d-block d-sm-none">
42
- <select class="form-select" id="stream-select" aria-label="{{ site.data.lang[site.conference.lang].location.rooms | default: 'Rooms' }}">
43
- {%- for room in edition_rooms -%}
44
- <option value="{{ forloop.index }}"{% unless room.live %} disabled{% endunless %}>{{ room.name | escape }}</option>
45
- {%- endfor %}
46
- </select>
47
- </div>
15
+ <div class="modal-footer d-sm-none">
16
+ <button type="button" class="btn btn-secondary w-100" data-bs-dismiss="modal">{{ site.data.lang[site.conference.lang].close | default: 'Close' }}</button>
48
17
  </div>
49
18
 
50
- {%- comment -%} Icons of the talks' live links, e.g. for a "Q&A" button {%- endcomment -%}
51
- {%- assign live_icons = "" | split: "" -%}
52
- {%- for talk in edition_talks -%}
53
- {%- for link in talk.links -%}
54
- {%- if link.live and link.icon -%}
55
- {%- assign live_icons = live_icons | push: link.icon -%}
56
- {%- endif -%}
57
- {%- endfor -%}
58
- {%- endfor -%}
59
- {%- assign live_icons = live_icons | uniq %}
60
- <template id="stream-icons">
61
- {%- for icon in live_icons -%}
62
- <span data-icon="{{ icon | escape }}">{% include icon.html name=icon %}</span>
63
- {%- endfor -%}
64
- </template>
65
-
66
19
  </div>
67
20
  </div>
68
21
  </div>
@@ -19,7 +19,7 @@
19
19
  <a class="nav-link dropdown-toggle" href="#" id="navbar-dropdown{{ forloop.index0 }}" role="button" data-bs-toggle="dropdown" aria-expanded="false"{% if menu_label %} aria-label="{{ menu_label }}"{% endif %}>
20
20
  {{ menu_name }}
21
21
  </a>
22
- <div class="dropdown-menu" aria-labelledby="navbar-dropdown{{ forloop.index0 }}">
22
+ <div class="dropdown-menu">
23
23
  {%- include show_menu_items.html %}
24
24
  </div>
25
25
  </li>
@@ -30,7 +30,8 @@
30
30
  {%- include get_live_timestamps.html -%}
31
31
 
32
32
  <li class="nav-item live-show d-none d-print-none" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
33
- {%- include get_link.html class="nav-link" -%}
33
+ {%- include get_link_active.html -%}
34
+ {%- include get_link.html class="nav-link" is_active=is_active -%}
34
35
  {{ link_tag }}
35
36
  {%- if link.name -%}
36
37
  {{ link.name }}
@@ -72,7 +73,7 @@
72
73
  <a class="nav-link dropdown-toggle" href="#" id="navbar-editions" role="button" data-bs-toggle="dropdown" aria-expanded="false"{% if menu_label %} aria-label="{{ menu_label }}"{% endif %}>
73
74
  {{ menu_name }}
74
75
  </a>
75
- <div class="dropdown-menu dropdown-menu-end" aria-labelledby="navbar-editions">
76
+ <div class="dropdown-menu dropdown-menu-end">
76
77
  {%- include show_menu_items.html %}
77
78
  </div>
78
79
  </li>