From 1e538dc7cc37e59d6bbdffa59f2d7ed6aa7fca0e Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Thu, 26 Jun 2014 22:34:11 +0200 Subject: [PATCH 1/4] Fixed: webcal url now has the apikey embedded to support more third-party webcal clients. --- src/UI/Calendar/CalendarFeedView.js | 2 +- src/UI/Calendar/CalendarFeedViewTemplate.html | 32 +++++++------------ src/UI/Calendar/calendar.less | 4 +-- 3 files changed, 15 insertions(+), 23 deletions(-) diff --git a/src/UI/Calendar/CalendarFeedView.js b/src/UI/Calendar/CalendarFeedView.js index cf18cb711..c626a56ee 100644 --- a/src/UI/Calendar/CalendarFeedView.js +++ b/src/UI/Calendar/CalendarFeedView.js @@ -15,7 +15,7 @@ define( templateHelpers: { icalHttpUrl : window.location.protocol + '//' + window.location.host + StatusModel.get('urlBase') + '/feed/calendar/NzbDrone.ics?apikey=' + window.NzbDrone.ApiKey, - icalWebCalUrl : 'webcal://' + window.location.host + StatusModel.get('urlBase') + '/feed/calendar/NzbDrone.ics' + icalWebCalUrl : 'webcal://' + window.location.host + StatusModel.get('urlBase') + '/feed/calendar/NzbDrone.ics?apikey=' + window.NzbDrone.ApiKey }, onShow: function () { diff --git a/src/UI/Calendar/CalendarFeedViewTemplate.html b/src/UI/Calendar/CalendarFeedViewTemplate.html index 56ba9eb61..b217a953e 100644 --- a/src/UI/Calendar/CalendarFeedViewTemplate.html +++ b/src/UI/Calendar/CalendarFeedViewTemplate.html @@ -5,27 +5,19 @@

NzbDrone Calendar feed