From 3ca7f01a32cb3fd0d2134fb8745b3984d8ac2976 Mon Sep 17 00:00:00 2001 From: Ryan Selden Date: Tue, 9 Aug 2016 16:49:46 +0000 Subject: [PATCH] Add a UTC clock and integrate local meeting time It's a bit difficult to use the meeting schedule page if you're not in UTC time. This patch adds a little clock at the top (in UTC time) for those in far away time zones who don't want to keep track. It also adds a tooltip to each time link that displays the meeting time in the browser's local time. The clock uses JavaScript, and is set up properly to display a message on unsupported browsers. Note: for tooltip functionality, Bootstrap JS and jQuery are added with this patch (using a CDN just like Bootstrap CSS on the same page) To test, clone this change, run `tox`, and serve from the output/ directory (use `python -m SimpleHTTPServer PORT`). Change-Id: I8ec40caa425199a2efef2a0bf345dfbb07054482 --- meetingindex.jinja | 61 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/meetingindex.jinja b/meetingindex.jinja index b632e179..96d739a3 100644 --- a/meetingindex.jinja +++ b/meetingindex.jinja @@ -66,7 +66,11 @@ use in your favorite calendaring app:

{% for schedule in meeting.schedules %}
  {{ schedule.recurrence }} on {{ schedule.day }} at -{{ schedule.utc }} UTC + + {{ schedule.utc }} UTC + in #{{ schedule.irc }} (IRC webclient)
@@ -92,5 +96,60 @@ Logs from + +