diff --git a/instances/templates/instance.html b/instances/templates/instance.html index 322174ad..31261a7a 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -92,17 +92,20 @@ {% if show_screen %} {# the VM's screen, read by instance_page.js every few seconds and shown once one has come; opens the console where it can #} + {# its caption: whether the picture follows the VM (a suspended one's stays), and that a click opens the console #} {% if screen_opens_console %} + data-window="console-{{ instance.uuid }}" data-screen-url="{% url 'instances:screen' instance.id %}"> {% else %} {% endif %} + {% blocktrans with name=instance.name %}Screen of {{ name }}{% endblocktrans %} + + {% if instance.status == 3 %}{% bs_icon 'pause-fill' %} {% trans "Suspended" %} + {% else %} {% trans "Live" context "screen" %}{% endif %} + {% if screen_opens_console %}{% trans "Open console" %}{% endif %} + + {% if screen_opens_console %}{% else %}{% endif %} {% endif %}