]> www.vanbest.org Git - motioneye-debian/commitdiff
full screen frame also has a title now, configurable using ?title= query
authorCalin Crisan <ccrisan@gmail.com>
Mon, 1 Sep 2014 17:09:56 +0000 (20:09 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Mon, 1 Sep 2014 17:09:56 +0000 (20:09 +0300)
argument

src/handlers.py
templates/frame.html

index 1b9782e2773bbcb2426861851dd96e819deff588..225ae1b45aef737c1964a5a49edb7a0b969fbcc1 100644 (file)
@@ -719,7 +719,8 @@ class PictureHandler(BaseHandler):
         
         self.render('frame.html',
                 camera_id=camera_id,
-                camera_config=camera_config)
+                camera_config=camera_config,
+                title=self.get_argument('title', camera_config['@name']))
 
     @BaseHandler.auth()
     def download(self, camera_id, filename):
index ee0d3d365674edef50f8e11916012feca29031fb..386f15c3296b5886d1ec53a968ea052427362bec 100644 (file)
@@ -1,5 +1,7 @@
 {% extends "base.html" %}
 
+{% block title %}{{title}}{% endblock %}
+
 {% block style %}
     {{super()}}
     <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}css/frame.css" />