{% load i18n %}
| {% trans 'Name' %} | {% if show_hosts %}{% trans 'Host' %} | {% endif %}{% trans 'Status' %} | {% if app_settings.VM_DRBD_STATUS == 'True' %}{% trans 'Role/Disk' %} | {% endif %}{% trans 'vCPUs' %} | {% trans 'Memory' %} | {% trans 'Actions' %} |
|---|---|---|---|---|---|---|
| {% include 'instance_name_cell.html' with owners=show_hosts %} | {% if show_hosts %}{# the host pages are a superuser's #} {% if request.user.is_superuser %}{{ instance.compute.name }}{% else %}{{ instance.compute.name }}{% endif %} | {% endif %}{% include 'instance_state.html' %} | {% if app_settings.VM_DRBD_STATUS == 'True' %}{% if instance.drbd == "Primary/OK" or instance.drbd == "Secondary/OK" %}{% else %}{% endif %}{{ instance.drbd }} | {% endif %}{{ instance.info.3 }} | {% if instance.info %}{% widthratio instance.info.2 1024 1 %} MiB{% endif %} | {% include 'instance_actions.html' %} |