{% load i18n sizeformat parse_date %}
{% trans "Name" %}
{{ volume.name }}
{% trans "ID" %}
{{ volume.id }}
{% if volume.description %}
{% trans "Description" %}
{{ volume.description }}
{% endif %}
{% trans "Status" %}
{{ volume.status_label|capfirst }}

{% trans "Specs" %}


{% trans "Size" %}
{{ volume.size }} {% trans "GiB" %}
{% if volume.volume_type %}
{% trans "Type" %}
{{ volume.volume_type }}
{% endif %} {% if volume.availabilty_zone %}
{% trans "Availability zone" %}
{{ volume.availability_zone }}
{% endif %}
{% trans "Bootable" %}
{{ volume.is_bootable|yesno|capfirst }}
{% trans "Encrypted" %}
{% if volume.encrypted %}
{% trans "Yes" %}
{% else %}
{% trans "No" %}
{% endif %}
{% trans "Created" context "Created time" %}
{{ volume.created_at|parse_date }}

{% trans "Attachments" %}


{% for attachment in volume.attachments %}
{% trans "Attached To" %}
{% url detail_url.instance attachment.server_id as instance_url %} {% blocktrans trimmed with instance_name=attachment.instance.name device=attachment.device %} {{ instance_name }} on {{ device }} {% endblocktrans %}
{% empty %}
{% trans "Attached To" %}
{% trans "Not attached" %}
{% endfor %}
{% if volume.volume_image_metadata %}

{% trans "Volume Source" %}


{% trans "Image" %}
{% url detail_url.image volume.volume_image_metadata.image_id as image_url %} {{ volume.volume_image_metadata.image_name }}
{% endif %}

{% trans "Metadata" %}


{% if volume.metadata.items %} {% for key, value in volume.metadata.items %}
{{ key }}
{{ value }}
{% endfor %} {% else %}
{% trans "None" %}
{% endif %}
{% if volume.transfer %}

{% trans "Volume Transfer" %}


{% trans "ID" %}
{{ volume.transfer.id }}
{% trans "Name" %}
{{ volume.transfer.name }}
{% trans "Created" context "Created time" %}
{{ volume.transfer.created_at|parse_date }}
{% endif %} {% if volume.messages %}

{% trans "Messages" %}


{% for m in volume.messages %}
{{ m.user_message }}
{% endfor %}
{% endif %}