{% load i18n %} {% load bootstrap_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 instance.external_snapshots|length > 0 %} {% else %} {% endif %}
{% if instance.status != 5 %}

{% trans "You can get external snapshots within this tab." %}

{% else %}

{% trans "Create an external snapshot" %}

{% endif %}

{% trans "External snapshots are experimental in this stage, use it if you know what you are doing. 'Revert Snapshot' may require manual operation with CLI." %}

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

{% trans "WebVirtCloud supports only one external snapshot at the moment." %}

{% if instance.snapshots or instance.external_snapshots %}

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

{% if instance.snapshots %} {% for snap in instance.snapshots %} {% endfor %} {% elif instance.external_snapshots %} {% for ext_snap in instance.external_snapshots %} {% endfor %} {% endif %}
{% trans "Date" %} {% trans "Name" %} {% trans "Type - Description" %} {% trans "Action" %}
{{ snap.date|date:"M d H:i:s" }} {{ snap.name }} ({% trans "Internal" %}) - {{ snap.description }}
{% csrf_token %} {% if instance.status == 5 %} {% else %} {% endif %}
{% csrf_token %}
{{ ext_snap.date|date:"M d H:i:s" }} {{ ext_snap.name }} ({% trans "External" %}) - {{ ext_snap.description }}
{% csrf_token %}
{% csrf_token %}
{% else %}

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

{% endif %}