{% load i18n %} {% load icons %}
{% if instance.status != 5 %}

{% trans "With running machine, internal snapshots may take more than an hour, depending on how much memory has on your instance and how large the disk is." %}

{% trans "Live snapshot could cause server timeout and instance might be paused!!!" %}

{% else %}

{% trans "Create an internal snapshot" %}

{% endif %}
{% csrf_token %}
| {% if external_snapshots|length > 0 %} {% else %} {% endif %}
{% if instance.snapshots %}

{% trans "Choose a snapshot for restore/delete" %}

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

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

{% endif %}
{% if instance.status != 5 %}

You can get external snapshots within this tab.

External snapshots are experimental in this stage, use it if you know what you are doing.

{% else %}

Create an external snapshot

{% endif %}

Give your External Snapshot a distinctive description so it wouldn't get mixed with other snapshots.

{% csrf_token %}
{% if external_snapshots|length > 0 or instance.snapshots|length > 0 %}

WebVirtCloud supports only one External Snapshot at the moment.

{% else %} {% endif %}
{% if external_snapshots %}
{% for external_snapshot in external_snapshots %} {% for snapshot_cols in external_snapshot %} {% endfor %} {% endfor %}
Name Date Description {% trans "Action" %}
{{snapshot_cols}}
{% csrf_token %} {% if instance.status == 5 %} {% else %} {% endif %}
{% csrf_token %} {% if instance.status != 5 %} {% else %} {% endif %}
{% else%}

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

{% endif %}