{% load i18n %}

{% trans "VMs" %}

{% for i in instances %}
{{ i.name }} {% if i.owner == request.user %}{{ i.short_hostname }} {% else %}{{i.owner.profile.get_display_name}}{% endif %}
{{i.pref_operation.name}} {% if i.fav %} {% else %} {% endif %}
RAM: {{ i.ram_size }}, CPU: {{ i.num_cores }}, IP: {{ i.get_connect_host }}
{% if i.get_connect_port %} {% elif i.interface_set.count < 1%} {% else %} {% endif %}
{% if i.ipv6 and i.get_connect_port %}
{% endif %}
{% for command in i.connect_commands %}
{% endfor %}
{% empty %}
{% trans "You have no virtual machines." %}
{% trans "Use the new button to start a new VM" %}
{% endfor %}