console.html 1011 Bytes
Newer Older
Őry Máté committed
1
{% load i18n %}
2
{% load staticfiles %}
3
<div class="btn-toolbar">
4
{% if perms.vm.access_console %}
5 6
  <button id="sendCtrlAltDelButton" class="btn btn-danger btn-sm">{% trans "Send Ctrl+Alt+Del" %}</button>
  <button id="sendPasswordButton" class="btn btn-default btn-sm">{% trans "Type password" %}</button>
7
{% endif %}
8
  <button id="getScreenshotButton" class="btn btn-info btn-sm pull-right" data-vm-pk="{{ instance.pk }}"><i class="fa fa-picture"></i> {% trans "Screenshot" %}</button>
9
</div>
10
{% if perms.vm.access_console %}
11 12
<div class="alert alert-info" id="noVNC_status">
</div>
13
{% endif %}
14

15
<div id="vm-console-screenshot">
Kálmán Viktor committed
16
  <button class="btn btn-danger btn-sm pull-right">{% trans "Close" %}</button>
17 18 19 20 21
  <h3>{% trans "Screenshot" %}</h3>
  <img />
  <hr />
</div>

22
{% if perms.vm.access_console %}
23 24 25 26
<canvas id="noVNC_canvas" width="640px" height="20px">Canvas not supported.
</canvas>

<script>
27
  var INCLUDE_URI = '{% static "no-vnc/include/" %}';
28 29
  var VNC_URL = "{{ vnc_url }}";
</script>
30
{% endif %}