Update Debian files
[invirt/packages/invirt-web.git] / code / templates / novnc.mako
1 <%page expression_filter="h" />
2 <%inherit file="skeleton.mako" />
3
4 <%def name="title()">
5 Console to ${machine.name}
6 </%def>
7
8 <style type='text/css'>body { max-width: none }</style>
9 % if not on:
10 <p> Your machine appears to be off.</p>
11 % elif not has_vnc:
12 <p> Your machine appears to not be accepting VNC connections. Perhaps you have a ParaVM machine?</p>
13 % endif
14
15 <p>See <a href="help?subject=Console" target="_blank">tips</a> about framebuffer and other issues.</p>
16
17 <script type="text/javascript" src="static/novnc-1.0.js"></script>
18
19 <div id="novnc">
20 </div>
21 <script type="text/javascript">
22   let rfb = new novnc.default(document.getElementById("novnc"), "wss://${hostname}:${config.vnc.novnc_port}/vnc?host=${vnc_host};vmname=${machine.name};token=${authtoken}");
23 </script>