From: Calin Crisan Date: Sat, 14 Feb 2015 14:40:20 +0000 (+0200) Subject: added support for disabling software update feature X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=34a6ff315606964f1b6bc7f8eb3680ddd84be369;p=motioneye-debian added support for disabling software update feature --- diff --git a/src/handlers.py b/src/handlers.py index ea773e0..9b75f99 100644 --- a/src/handlers.py +++ b/src/handlers.py @@ -149,6 +149,7 @@ class MainHandler(BaseHandler): self.render('main.html', frame=False, version=motioneye.VERSION, + enable_update=bool(settings.REPO), wpa_supplicant=settings.WPA_SUPPLICANT_CONF, enable_reboot=settings.ENABLE_REBOOT, timezones=timezones, diff --git a/templates/main.html b/templates/main.html index 9fcedba..304e39b 100644 --- a/templates/main.html +++ b/templates/main.html @@ -96,11 +96,13 @@ Current Version {{version}} + {% if enable_update %} Software Update
Check
? + {% endif %} Power
Shut Down