import json
import logging
import os
+import socket
from tornado.web import RequestHandler, HTTPError, asynchronous
class MainHandler(BaseHandler):
@BaseHandler.auth()
def get(self):
- self.render('main.html')
+ self.render('main.html',
+ hostname=socket.gethostname())
class ConfigHandler(BaseHandler):
margin-top: 30px;
}
+div.hostname {
+ vertical-align: middle;
+ display: inline-block;
+ font-size: 27px;
+}
+
/* settings */
box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
background-color: rgba(40, 40, 40, 0.9);
}
+
+ div.hostname {
+ display: none;
+ }
}
@media all and (max-width: 400px) {
<select class="video-device styled" id="videoDeviceSelect"></select>
<div class="button rem-camera-button mouse-effect" id="remCameraButton" title="remove camera"></div>
<div class="button apply-button" id="applyButton">Apply</div>
+ {% if hostname %}<div class="hostname">{{hostname}}</div>{% endif %}
</div>
{% endif %}
<div class="logo">