Commit 7fee911a authored by Zhou Fang's avatar Zhou Fang
Browse files

Added examples for dynamic time agenda

parent f1ac7497
......@@ -111,6 +111,20 @@ Adding a "times" list into the items in agenda.yaml above will show multiple tim
---
## Dynamic time based on user's timezone
Targets ./data/en/active/agenda_dynamic_time.yaml:
Set "dynamicTime" property to true to enable dynamic time.
If "timezone" is not set, it will take "GMT-04" as the default value. If the timezone for input time is different, please add it and set the value in this format: GMT-[xx] or GMT+[xx].
The output timezone will always be the user's timezone.
{{< events/agenda event="active" src="agenda_dynamic_time">}}
---
## Agenda w/ slides
Targets ./data/en/slides/agenda.yaml:
......
dynamicTime: true
timezone: GMT+01
types:
- name: Demo
id: demo
color: "#66c"
- name: Keynote
id: keynote
color: "#e44"
items:
- name: How best to apologize, a workshop
presenter: Ken Canadian
time: 15:00-18:00
type: demo
vod: "#1"
- name: How to 'how to'
presenter: Jim Bob
time: 18:00-19:00
type: keynote
vod: "#2"
......@@ -175,8 +175,10 @@ span.eclipsefdn-agenda-legend-icon-{{ urlize .id }}::after {
{{end}}
</ul>
</td>
{{else if $agendabase.dynamicTime}}
<td class="dynamic-time" data-tz="{{ $agendabase.timezone | default "GMT-04" }}">{{.time | safeHTML }}</td>
{{else}}
<td>{{.time | safeHTML }}</td>
<td class="static-time">{{.time | safeHTML }}</td>
{{end}}
{{ end }}
<!-- Write the slide column if it has been set -->
......@@ -206,4 +208,4 @@ span.eclipsefdn-agenda-legend-icon-{{ urlize .id }}::after {
<!-- Close tab content section -->
</div>
{{ end }}
</div>
\ No newline at end of file
</div>
......@@ -1907,9 +1907,9 @@ clone-deep@^4.0.1:
shallow-clone "^3.0.0"
collect.js@^4.28.5:
version "4.31.3"
resolved "https://registry.yarnpkg.com/collect.js/-/collect.js-4.31.3.tgz#a13aec0b59051de93196e56e2da9ce36a8ee9a42"
integrity sha512-pHXhGzo5qftTTlEj88MCRXN8YuhARhmEnCOmc7wzBlI+5fVVC5VZ9Z/Z5KEDuM90Fgwv025Fc2Gk4VpFKMrzQA==
version "4.32.0"
resolved "https://registry.yarnpkg.com/collect.js/-/collect.js-4.32.0.tgz#4c1569243cd340f19cedb955e28c1288d013bd09"
integrity sha512-Ro0fspulC0J325cgFdkzFEkRDs6MmclMy2Fy5adhdFKg5QqMv1nn1zLpCdAxiehlur6Ep08Wr1f7ldNv+fB6+Q==
color-convert@^1.9.0:
version "1.9.3"
......@@ -2297,9 +2297,9 @@ debug@^3.1.1:
ms "^2.1.1"
debug@^4.1.0, debug@^4.1.1:
version "4.3.3"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664"
integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==
version "4.3.4"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
dependencies:
ms "2.1.2"
......@@ -2534,9 +2534,9 @@ ee-first@1.1.1:
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
electron-to-chromium@^1.4.84:
version "1.4.85"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.85.tgz#a3666ba42147026b9f34d4d8d4caf0740e80f751"
integrity sha512-K9AsQ41WS2bjZUFpRWfvaS4RjEcRCamEkBJN1Z1TQILBfP1H8QnJ9ti0wiLiMv0sRjX3EHKzgs9jDnmGFx2jXg==
version "1.4.87"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.87.tgz#1aeacfa50b2fbf3ecf50a78fbebd8f259d4fe208"
integrity sha512-EXXTtDHFUKdFVkCnhauU7Xp8wmFC1ZG6GK9a1BeI2vvNhy61IwfNPo/CRexhf7mh4ajxAHJPind62BzpzVUeuQ==
element-closest-polyfill@^1.0.4:
version "1.0.4"
......@@ -4083,9 +4083,9 @@ node-fetch@^2.6.1:
whatwg-url "^5.0.0"
node-forge@^1.2.0:
version "1.2.1"
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.2.1.tgz#82794919071ef2eb5c509293325cec8afd0fd53c"
integrity sha512-Fcvtbb+zBcZXbTTVwqGA5W+MKBj56UjVRevvchv5XrcyXbmNdesfZL37nlcWOfpgHhgmxApw3tQbTr4CqNmX4w==
version "1.3.0"
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.0.tgz#37a874ea723855f37db091e6c186e5b67a01d4b2"
integrity sha512-08ARB91bUi6zNKzVmaj3QO7cr397uiDT2nJ63cHjyNtCTWIgvS47j3eT0WfzUwS9+6Z5YshRaoasFkXCKrIYbA==
node-libs-browser@^2.2.1:
version "2.2.1"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment