{% load i18n %}

{% blocktrans with type=instance.console_type|upper %} This action opens a new window with a {{ type }} connection to the console of the instance.{% endblocktrans %}

{% if not can_open_console %}

{% trans "Only the owners of this instance and administrators can open its console." %}

{% else %} {% if instance.console_type == 'vnc' %}
{% endif %} {% if instance.status == 1 %} {% else %} {% endif %} {% endif %}
{% if app_settings.SHOW_ACCESS_ROOT_PASSWORD == 'True' and can_change %}

{% trans "You need shut down your instance and enter a new root password." %}

{% csrf_token %}
{% if instance.status == 5 %} {% else %} {% endif %}
{% endif %} {% if app_settings.SHOW_ACCESS_SSH_KEYS == 'True' and can_change %}

{% trans "You need shut down your instance and choose your public key." %}

{% csrf_token %}
{% if instance.status == 5 %} {% else %} {% endif %}
{% endif %} {% if instance.status == 1 and can_open_console %}

{% trans "This action opens a remote viewer with a connection to the console of the instance." %}

{% trans "To download console.vv file for virt-viewer." %}

{% trans "Get console.vv" %}
{% endif %}
{% block script %} {% if can_open_console %} {% endif %} {% endblock %}