console.html 1.03 KB
Newer Older
Őry Máté committed
1
{% load i18n %}
2
<div class="btn-toolbar">
3
{% if perms.vm.access_console %}
4 5
  <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>
6
{% endif %}
7
  <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>
8
</div>
9
{% if perms.vm.access_console %}
10 11
<div class="alert alert-info" id="noVNC_status">
</div>
12
{% endif %}
13

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

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

<script src="{{ STATIC_URL }}dashboard/novnc/util.js"></script>
<script>
27 28 29
  var INCLUDE_URI = '{{ STATIC_URL }}dashboard/novnc/';
  var VNC_URL = "{{ vnc_url }}";
</script>
30
{% endif %}