{% load i18n sizeformat parse_date %}

{% trans "Snapshot Overview" %}


{% trans "Name" %}
{{ snapshot.name }}
{% trans "ID" %}
{{ snapshot.id }}
{% url 'horizon:project:shares:detail' snapshot.share_id as share_url %}
{% trans "Source" %}
{{ snapshot.share_name_or_id }}
{% if snapshot.description %}
{% trans "Description" %}
{{ snapshot.description }}
{% endif %}
{% trans "Status" %}
{{ snapshot.status|capfirst }}
{% if snapshot.export_locations %}
{% trans "Export locations" %}
{% for el in snapshot.export_locations %}

Path:
{% if el.is_admin_only != None %}
Is admin only: {{ el.is_admin_only }}
{% endif %} {% if el.share_snapshot_instance_id %}
Snapshot Replica ID: {{ el.share_snapshot_instance_id }}
{% endif %}

{% endfor %} {% endif %}
{% if snapshot.rules != None %}

{% trans "Access Rules" %}


{% for rule in snapshot.rules %}
{{ rule.access_type }}

Access to: {{ rule.access_to }}
Status: {{ rule.state }}

{% endfor %}
{% endif %}

{% trans "Specs" %}


{% trans "Size" %}
{{ snapshot.size }} {% trans "GiB" %}
{% trans "Created" %}
{{ snapshot.created_at|parse_date }}