{% load i18n sizeformat parse_date %} {% load url from future %}

{% trans "Volume Overview" %}: {{volume.display_name }}

{% trans "Info" %}


{% trans "Name" %}
{{ volume.display_name }}
{% trans "ID" %}
{{ volume.id }}
{% if volume.display_description %}
{% trans "Description" %}
{{ volume.display_description }}
{% endif %}
{% trans "Status" %}
{{ volume.status|capfirst }}

{% trans "Specs" %}


{% trans "Size" %}
{{ volume.size }} {% trans "GB" %}
{% trans "Created" %}
{{ volume.created_at|parse_date }}

{% trans "Attachments" %}


{% for attachment in volume.attachments %}
{% trans "Attached To" %}
{% url 'horizon:project:instances:detail' attachment.server_id as instance_url%} {{ attachment.instance.name }} {% trans "on" %} {{ attachment.device }}
{% empty %}
{% trans "Attached To" %}
{% trans "Not attached" %}
{% endfor %}

{% trans "Metadata" %}


{% for key, value in volume.metadata.items %}
{{ key }}
{{ value }}
{% endfor %}