{% extends "layout.html" %} {% block content %}

{% for vm in vms %} {% if vm[3].startswith('rhel') or vm[3].startswith('cfme')%} {% set logo = 'Redhat.png' %} {% elif vm[3].startswith('CentOS') %} {% set logo = 'Centos.png' %} {% elif vm[3].startswith('fedora') %} {% set logo = 'Fedora.png' %} {% elif vm[3].startswith('debian') %} {% set logo = 'Debian.png' %} {% elif vm[3].startswith('utopic') or vm[3].startswith('vivid') or vm[3].startswith('wily') or vm[3].startswith('xenial') or vm[3].startswith('yakkety') %} {% set logo = 'Ubuntu.png' %} {% else %} {% set logo = 'Tux.png' %} {% endif %} {% if vm[6] == 'OK' %} {% set report = 'glyphicon glyphicon-ok-circle green' %} {% elif vm[6] == 'Running' %} {% set report = 'glyphicon glyphicon-minus-sign blue' %} {#% else %} {% set report = 'glyphicon glyphicon-question-sign' %#} {% endif %} {% if vm[6] == 'OK' or vm[6] == 'Running' %} {% else %} {% endif %} {% endfor %}
Type Name Status Ips Source Description/Plan Profile Actions
{{ vm[0] }} {{ vm[0] }}{{ vm[1] }} {{ vm[2] }} {{ vm[3] }} {{ vm[4] }} {{ vm[5] }}
{% endblock %}