{% 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

{% endif %}

Create CT

{% endif %}
{% if dist == 'Unknown' %}
LXC Web Panel is optimized for Ubuntu 12.10 !
{% endif %}

{{ dist }} (host)

CPU usage :

Memory usage :

Disk usage :

Uptime :

New version is out ! ()
{% for status in containers_all %} {% for container in status.containers %} {% if loop.first %}{% endif %} {% endfor %} {% endfor %}
Status Name Hostname IP Address Mem. usage Actions
{{ status.status|capitalize }}{{container.name}} {{container.settings.utsname}} {% if container.settings.flags == 'up' %}{% if container.settings.ipv4 != '' %}{{container.settings.ipv4}}{% else %}Undefined{% endif %}{% elif container.settings.flags == 'down' %}Link Down{% endif %} {{ render_memory_wrapper(container.memusg) }}
{% set start_action = {'stopped':'start','frozen':'unfreeze'} %} Start Stop Freeze
{% if session.su == 'Yes' %}{% 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_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) -%} {% if value != 0 %}{{ value }} MB{% endif %} {%- endmacro %} {% block script %} {% endblock %}