{% 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 instance.console_type == 'vnc' %}
{% endif %} {% if instance.status == 1 %} {% else %} {% endif %}
{% if app_settings.SHOW_ACCESS_ROOT_PASSWORD == 'True' %}

{% 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' %}

{% 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 %}

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

{% endif %}
{% block script %} {% endblock %}