mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 04:21:36 +00:00
Add options to disable google calendar
This commit is contained in:
parent
1bed2c08a9
commit
63b20f4046
4 changed files with 5 additions and 2 deletions
|
@ -27,3 +27,4 @@ NEW_RELIC_LICENSE_KEY=
|
|||
|
||||
GOOGLE_API_KEY=
|
||||
GOOGLE_CALENDAR_ID=
|
||||
GOOGLE_CALENDAR=enabled
|
|
@ -46,3 +46,4 @@ NEW_RELIC_LICENSE_KEY=
|
|||
|
||||
GOOGLE_API_KEY=
|
||||
GOOGLE_CALENDAR_ID=
|
||||
GOOGLE_CALENDAR=enabled
|
|
@ -34,3 +34,4 @@ OPENSSL_CONF=/etc/ssl/
|
|||
|
||||
GOOGLE_API_KEY=
|
||||
GOOGLE_CALENDAR_ID=
|
||||
GOOGLE_CALENDAR=enabled
|
|
@ -183,11 +183,11 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def upcoming_matches
|
||||
calendar.upcoming || []
|
||||
ENV['GOOGLE_CALENDAR'] == "disabled" ? (calendar.upcoming || []) : []
|
||||
end
|
||||
|
||||
def upcoming_nsltv
|
||||
calendar.upcoming_nsltv || []
|
||||
ENV['GOOGLE_CALENDAR'] == "disabled" ? (calendar.upcoming || []) : []
|
||||
end
|
||||
|
||||
def gathers_url
|
||||
|
|
Loading…
Reference in a new issue