From: Calin Crisan Date: Mon, 31 Oct 2016 20:50:19 +0000 (+0200) Subject: motion version is now displayed in the settings panel X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=c67cb6b3e6c5551a04c271946d066df560f99fbb;p=motioneye-debian motion version is now displayed in the settings panel --- diff --git a/motioneye/handlers.py b/motioneye/handlers.py index 18739aa..33fd33a 100644 --- a/motioneye/handlers.py +++ b/motioneye/handlers.py @@ -193,10 +193,13 @@ class MainHandler(BaseHandler): # additional config main_sections = config.get_additional_structure(camera=False, separators=True)[0] camera_sections = config.get_additional_structure(camera=True, separators=True)[0] + + motion_info = motionctl.find_motion(); self.render('main.html', frame=False, version=motioneye.VERSION, + motion_version=motion_info[1] if motion_info else '(none)', enable_update=settings.ENABLE_UPDATE, enable_reboot=settings.ENABLE_REBOOT, add_remove_cameras=settings.ADD_REMOVE_CAMERAS, diff --git a/motioneye/templates/main.html b/motioneye/templates/main.html index 1f18022..76f6685 100644 --- a/motioneye/templates/main.html +++ b/motioneye/templates/main.html @@ -172,9 +172,13 @@
- Current Version + motionEye Version {{version}} + + Motion Version + {{motion_version}} + {% if enable_update %} Software Update