{% if server %}

VMs in {{ server.name }}

{% if not server.vms.all %} {{ server.name }} has no VMs at the moment {% else %} {% for vm in server.vms.all %} {% endfor %}
Name Memory OS Type OS Dist OS Version Project Slice Status Actions
{{ vm.name }} {{vm.memory}} {{vm.operatingSystemType }} {{vm.operatingSystemDistribution }} {{vm.operatingSystemVersion }} {{vm.projectName }} {{vm.sliceName }} {{vm.state }} {% if vm.state == "running" %} Stop | Reboot {% endif %} {% if vm.state == "stopped" %} Start | Delete {% endif %} {% if vm.state == "created (stopped)" %} Start | Delete {% endif %} {% if vm.state == "failed" %} Check status {% endif %}
{% endif %} {% endif %}