diff --git a/instances/templates/instances/access_tab.html b/instances/templates/instances/access_tab.html index 86622572..fab99faf 100644 --- a/instances/templates/instances/access_tab.html +++ b/instances/templates/instances/access_tab.html @@ -1,85 +1,85 @@ {% load i18n %} -{% load vm_states %}
{% trans "Access" %} · {{ state.0 }} · {{ instance.console_type|upper }}
- {% if not can_open_console %} -{% trans "Only the owners of this instance and administrators can open its console." %}
- {% elif instance.status == 1 or instance.status == 3 %} - {# one window per VM: opening it again reloads it; a paused VM shows its last screen #} -{% trans "Only the owners of this instance and administrators can open its console." %}
+ {% elif instance.status == 1 or instance.status == 3 %} + {# one window per VM: opening it again reloads it; a paused VM shows its last screen #} +{% trans "For virt-viewer or another VNC or SPICE client on your computer." %}
+ {% else %} +{% trans "A remote viewer cannot reach this console: it listens on the host only, or it is a serial one." %}
{% endif %} -- {% trans "Console opens a window here." %} - {% if vdi_reachable %}{% trans "VDI opens your remote viewer; console.vv sets up virt-viewer." %} - {% else %}{% trans "A remote viewer cannot reach this console: it listens on the host only, or it is a serial one." %}{% endif %} -
- {% else %} -{% trans "Start the VM to open its console." %}
- {% endif %} - {% if can_change and app_settings.SHOW_ACCESS_ROOT_PASSWORD == 'True' %} - - {% endif %} - {% if can_change and app_settings.SHOW_ACCESS_SSH_KEYS == 'True' %} - - {% endif %} + {% else %} +{% trans "Start the VM to open its console." %}
+ {% endif %} ++ {% if instance.status == 5 %} + {% trans "Written to the VM's disk while it is off." %} + {% elif guest_access_ready %} + {% trans "Sent to the running VM through its guest agent." %} + {% elif instance.status == 1 %} + {% trans "The guest agent is not connected: connect it, or shut the VM down." %} + {% else %} + {% trans "Shut the VM down, or run it with its guest agent." %} + {% endif %} +
+ {% if app_settings.SHOW_ACCESS_ROOT_PASSWORD == 'True' %} + + {% endif %} + {% if app_settings.SHOW_ACCESS_SSH_KEYS == 'True' %} + + {% endif %} +