{% set td = {'running':'success','frozen':'info','stopped':'important'} %} {% set tr = {'running':'success','frozen':'info','stopped':'error'} %} {% set disabled = {'running':'success','frozen':'info','stopped':'important'} %} {% extends "layout.html" %} {% block title %}Overview{% endblock %} {% block content %}
{{ super() }}
{% if session.su == 'Yes' %} Reboot {% if containers != [] %} Clone CT {% if storage_repos %} Backup CT {% endif %} {% endif %} Create CT {% endif %}

{{ dist }} ({{ host }})

CPU usage :

Memory usage :

Disk usage :

Uptime :

{% for status in containers_all %} {% for container in status.containers %} {% if loop.first %}{% endif %} {% endfor %} {% endfor %}
Status Name Hostname IP Address Mem. usage Auto Start Actions
{{ status.status|capitalize }}{{container.name}} {{container.settings.utsname}} {% if container.settings.ipv4 %}{{container.settings.ipv4}}{% else %}-{% endif %} {{ render_memory_wrapper(container.memusg, container.settings.memlimit) }} {% if container.settings.start_auto == '1' %} {% if container.settings.start_order %} {{ container.settings.start_order }} {% endif %} {% else %} - {% endif %}
{% set start_action = {'stopped':'start','frozen':'unfreeze'} %} Start Stop Freeze
{% if session.su == 'Yes' and status.status == 'stopped' %}{% endif %}
{% if session.su == 'Yes' %} {% include "includes/modal_reboot.html" %} {% include "includes/modal_create.html" %} {% if containers != [] %} {% include "includes/modal_clone.html" %} {% include "includes/modal_backup.html" %} {% include "includes/modal_destroy.html" %} {% endif %} {% endif %} {% endblock %} {% macro memory_color(value) -%}{% if value != 0 %}{% if 0 <= value <= 511 %}success{% elif 512 <= value < 980 %}warning{% else %}important{% endif %}{% endif %}{%- endmacro %} {% macro render_memory_wrapper(value, limit) -%} {% if value != 0 %} {{ value }}{% if limit != '' %} / {{ limit }}{% endif %} MB {% else %} {% endif %} {%- endmacro %} {% block script %} {% endblock %}