Merge tag '0.10.2'
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / virtual_machine / novnc.html
blob1fc47aefbd47e266bf17dc83bf1378230116d2dd
1 {% load i18n %}
2 <style>
3 #actions {margin-bottom:30px;}
4 </style>
5 <script type="text/javascript">
6 // Set include path for noVNC scripts
7 var INCLUDE_URI = "{{SITE_ROOT}}/novnc/";
8 // Set path for proxy requests
9 var PROXY_REQUEST_URI = "{% url instance-vnc-proxy cluster_slug instance.hostname %}";
10 {% if not popout %}
11 var POPOUT_URL = "{% url instance-vnc-popout cluster_slug instance.hostname %}";
12 {% endif %}
13 </script>
14 <script type="text/javascript" src="{{STATIC_URL}}/js/noVNC.js"></script>
16 <ul id="actions" class="horizontal">
17 <li><a id="encrypt" href="#" title="encrypt" class="button encrypt">{% trans "Encrypt" %}</a></li>
18 <li><a id="connect" href="#" title="connect to" class="button connect">{% trans "Connect" %}</a></li>
19 {% ifequal instance.info.status "running" %}
20 <li><a class="button shutdown power" title="shut down" href="{% url instance-shutdown cluster_slug instance.hostname %}">{% trans "Shutdown" %}</a></li>
21 <li><a class="button reboot power" title="reboot" href="{% url instance-reboot cluster_slug instance.hostname %}">{% trans "Reboot" %}</a></li>
22 {% else %}
23 <li><a class="button startup power" href="{% url instance-startup cluster_slug instance.hostname %}">{% trans "Start" %}</a></li>
24 {% endifequal %}
25 <li><a id="ctrlaltdelete" href="#" class="button reboot disabled power" title="Send Ctrl-Alt-Delete">Ctrl-Alt-Delete</a></li>
26 {% if not popout %}
27 <li><a id="popout" href="#" class="button popout" title="popout vnc window"></a></li>
28 {% endif %}
29 </ul>
31 <input type="checkbox" id="encrypt_check" />
33 <div id="VNC_screen">
34 <div id="VNC_status_bar" class="VNC_status_bar">
35 noVNC client
36 </div>
37 <canvas id="VNC_canvas">
38 {% blocktrans %}Canvas is not supported in your browser. Please use new versions
39 of Chrome or Firefox.{% endblocktrans %}
40 </canvas>
41 </div>