{% load i18n %} {% load parse_date %} {% for volume in volumes %} {% endfor %}
{% trans "ID" %} {% trans "Name" %} {% trans "Status" %} {% trans "Size" %} {% trans "Created" %} {% trans "Attached To" %} {% trans "Actions" %}
{{ volume.id }} {{ volume.displayName }} {{ volume.status|capfirst }} {{ volume.size }} {% trans "GB" %} {{ volume.createdAt|parse_date }} {% for attachment in volume.attachments %} {% if attachment %} Instance {{ attachment.serverId }} ({{ attachment.device }}) {% else %} {% trans "Not Attached" %} {% endif %} {% endfor %}
    {% if volume.status == "in-use" %} {% for attachment in volume.attachments %}
  • {% include "nova/volumes/_detach_form.html" with form=detach_form %}
  • {% endfor %} {% endif %} {% if volume.status == "available" %}
  • {% trans "Attach" %}
  • {% include "nova/volumes/_delete.html" with form=delete_form %}
  • {% endif %}