{% load i18n %} {% load parse_date %}

{% trans "Block Volumes" %}

{% trans "Create New Volume" %} {% trans "inspect" %}
{% for volume in volumes %} {% endfor %}
{% trans "Name" %} {% trans "Size" %} {% trans "Instance" %} {% trans "Actions" %}
{{ volume.displayName }} {{ volume.size }} {% trans "GB" %} {% for attachment in volume.attachments %} {% if attachment %} {# TODO(jake): Make this the instance name #} Instance {{ attachment.serverId }} ({{ attachment.device }}) {% else %} {% trans "Not Attached" %} {% endif %} {% endfor %} {% if volume.status == "in-use" or volume.status == "available" %} More
    {% if volume.status == "in-use" %} {% for attachment in volume.attachments %}
  • {% include "nova/instances_and_volumes/volumes/_detach.html" with form=detach_form %}
  • {% endfor %} {% endif %} {% if volume.status == "available" %}
  • {% trans "Attach" %}
  • {% include "nova/instances_and_volumes/volumes/_delete.html" with form=delete_form %}
  • {% endif %}
{% else %} None {% endif %}