From 32b1f219497fd30c8aff1c70a6e077b42495d8c1 Mon Sep 17 00:00:00 2001 From: Philippus Date: Tue, 31 Jul 2018 23:27:20 +0200 Subject: [PATCH] Indicate type of upcoming meeting (SIP or SPP), fixes #917 --- _includes/footer.html | 8 +++++--- _layouts/sips.html | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index 6fba4fd292..eb38dd0cfe 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -67,8 +67,7 @@ // if there indeed are upcoming meetings, display the next one if (data.items.length > 0) { - - // YouTube video ID for the next upcoming SIP meeting + // YouTube video ID for the next upcoming SIP/SPP meeting var videoId = data.items[0].id.videoId; $.getJSON(vidQuery + videoId, function(vidData) { @@ -76,7 +75,10 @@ var result = vidData.items[0].liveStreamingDetails.scheduledStartTime; var startTime = moment(result).format("dddd, MMMM Do YYYY, ha"); - var meetingTitle = moment(result).format("MMMM YYYY") + " SIP Meeting"; + var sipOrSpp = "SIP"; + if (data.items[0].snippet.title.indexOf("SPP") !== -1) sipOrSpp = "SPP"; + + var meetingTitle = moment(result).format("MMMM YYYY") + " " + sipOrSpp + " Meeting"; var href = "https://www.youtube.com/watch?v=" + videoId; var a = document.createElement('a'); $(a).attr('href', href).text(meetingTitle); diff --git a/_layouts/sips.html b/_layouts/sips.html index c2f2af3a41..ea2b40b2db 100644 --- a/_layouts/sips.html +++ b/_layouts/sips.html @@ -17,7 +17,7 @@
Scala Improv
View all SIPs
-
SIP Meetings
+
SIP/SPP Meetings
Next meeting: