{% extends "base.html" %} {% load i18n %} {% block title %}{% trans "Instance" %} - {{ vname }}{% endblock %} {% block content %}

{{ vname }}

{% include 'errors_block.html' %}
Status: {% ifequal status 5 %} {% trans "Off" %} {% endifequal %} {% ifequal status 1 %} {% trans "Active" %} {% endifequal %} {% ifequal status 3 %} {% trans "Suspend" %} {% endifequal %} Vcpu: {% if cur_vcpu %}{{ cur_vcpu }}{% else %}{{ vcpu }}{% endif %} Ram: {{ cur_memory }}{% trans "MB" %} {% ifnotequal description 'None' %} {{ description }} {% endifnotequal %}

{% ifequal status 1 %}

{% trans "This action forcibly powers off the instance and may cause data corruption." %}

{% csrf_token %}

{% trans "This action sends an ACPI shutdown signal to the instance." %}

{% csrf_token %}

{% trans "This action suspends the instance." %}

{% csrf_token %}
{% endifequal %} {% ifequal status 3 %}

{% trans "This action restore the instance after suspend." %}

{% csrf_token %}
{% endifequal %} {% ifequal status 5 %}

{% trans "Click on Boot button to start this instance." %}

{% csrf_token %}
{% endifequal %}

{% trans "This action opens a new window with a VNC connection to the console of the instance." %}

{% ifequal status 5 %} {% else %} {% trans "Console" %} {% endifequal %}
{% ifequal status 5 %}

{% trans "This may take more than an hour, depending on how much content is on your droplet and how large the disk is." %}

{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}
{% else %}

{% trans "To take a snapshot please Power Off the instance." %}

{% endifequal %}
{% ifequal status 5 %} {% if snapshots %} {% for snap in snapshots %} {% endfor %}
{% trans "Name" %} {% trans "Date" %} {% trans "Action" %}
{{ snap.name }} {{ snap.date|date:"M d H:i:s" }}
{% csrf_token %} {% ifequal status 5 %} {% else %} {% endifequal %}
{% csrf_token %}
{% else %}

{% trans "You do not have any snapshots" %}

{% endif %} {% else %}

{% trans "To restore snapshots you need Power Off the instance." %}

{% endifequal %}
{% endblock %} {% block script %} {% endblock %}