{# the VMs whose definitions name a device, linked when the panel has them #} {% for vm in device.vms %}{% if vm.id %}{{ vm.name }}{% else %}{{ vm.name }}{% endif %}{% if not forloop.last %}, {% endif %}{% empty %}–{% endfor %}