2017-06-06 09:49:32 -04:00
{% extends "base.html" %}
{% block styles %}
{{ super() }}
< / style >
{% endblock %}
{% block page_content %}
< div class = "row" >
{% include "admin/admin_tasks.html" %}
< div class = "col-md-12" >
2017-06-28 10:42:21 -04:00
< div class = "panel panel-warning" id = "deployments" >
2017-06-06 09:49:32 -04:00
< div class = "panel-heading" > Deployments< / div >
< div class = "panel-body" > < p >
< table class = "table table-hover table-striped table-condensed cf" >
< thead >
< tr >
2017-06-28 10:42:21 -04:00
< th > Owner< / th >
2017-06-06 09:49:32 -04:00
< th > Cube ID< / th >
< th > Alias< / th >
< th > CPU< / th >
< th > Mem< / th >
< th > HDD< / th >
2017-06-28 10:42:21 -04:00
< th > Price< / th >
2017-06-25 10:11:52 -04:00
< th > Last Charged< / th >
2017-07-11 12:20:44 -04:00
< th > Days Left< / th >
2017-06-06 09:49:32 -04:00
< / tr >
2017-06-10 23:26:10 -04:00
< / thead >
2017-06-06 09:49:32 -04:00
< tbody >
{% for deploy in deployments %}
2017-07-13 10:32:24 -04:00
{% if deploy.enabled == False %}
< tr class = "danger" >
{% else %}
{% if deploy.warning == True %}
< tr class = "warning" >
{% else %}
< tr >
{% endif %}
{% endif %}
2017-06-28 10:42:21 -04:00
< td > < a href = "{{ url_for('admin.dashboard', user_pid=deploy.user_id) }}" > {{ deploy.owner.email }}< / a > < / td >
2017-06-26 10:39:31 -04:00
< td > {{ deploy.machine_id }}< / td >
2017-06-06 09:49:32 -04:00
< td > {{ deploy.machine_alias }}< / font > < / td >
2017-06-28 10:42:21 -04:00
< td > {{ deploy.machine_cpu }}< / td >
2017-06-06 09:49:32 -04:00
< td > {{ deploy.machine_mem }} MB< / td >
< td > {{ deploy.machine_hdd }} GB< / td >
2017-06-28 10:42:21 -04:00
< td > {{ deploy.price }}< / td >
2017-06-25 10:11:52 -04:00
< td > {{ moment(deploy.date_last_charge).format('lll') }} ({{ moment(deploy.date_last_charge).fromNow() }})< / td >
2017-07-11 12:20:44 -04:00
< td > {{ deploy.daysleft }}< / td >
2017-06-06 09:49:32 -04:00
{% endfor %}
< / tbody >
< / table >
< / div >
< / div >
< / div >
2017-06-10 23:26:10 -04:00
< div class = "col-md-12" >
2017-06-28 10:42:21 -04:00
< div class = "panel panel-warning" id = "services" >
2017-06-10 23:26:10 -04:00
< div class = "panel-heading" > Services< / div >
< div class = "panel-body" > < p >
< table class = "table table-hover table-striped table-condensed cf" >
< thead >
< tr >
2017-06-28 10:42:21 -04:00
< th > Owner< / th >
2017-06-10 23:26:10 -04:00
< th > Category< / th >
< th > Description< / th >
< th > Price< / th >
2017-06-25 10:11:52 -04:00
< th > Last Charged< / th >
2017-07-11 12:20:44 -04:00
< th > Days Left< / th >
2017-06-10 23:26:10 -04:00
< / tr >
< / thead >
< tbody >
{% for service in services %}
2017-07-13 10:32:24 -04:00
{% if service.enabled == False %}
< tr class = "danger" >
{% else %}
{% if service.warning == True %}
< tr class = "warning" >
{% else %}
< tr >
{% endif %}
{% endif %}
2017-06-28 10:42:21 -04:00
< td > < a href = "{{ url_for('admin.dashboard', user_pid=service.user_id) }}" > {{ service.owner.email }}< / a > < / td >
2017-06-10 23:26:10 -04:00
< td > {{ service.category }}< / td >
< td > {{ service.description }}< / td >
2017-06-25 10:11:52 -04:00
< td > {{ service.price }}< / td >
< td > {{ moment(service.date_last_charge).format('ll') }} ({{ moment(service.date_last_charge).fromNow() }})< / td >
2017-07-11 12:20:44 -04:00
< td > {{ service.daysleft }}< / td >
2017-06-10 23:26:10 -04:00
< / tr >
{% endfor %}
< / tbody >
< / table >
< / div >
< / div >
< / div >
2017-06-06 09:49:32 -04:00
< div class = "col-md-12" >
2017-06-28 10:42:21 -04:00
< div class = "panel panel-warning" id = "domains" >
2017-06-06 09:49:32 -04:00
< div class = "panel-heading" > Domains< / div >
< div class = "panel-body" > < p >
< table class = "table table-hover table-striped table-condensed cf" >
< thead >
< tr >
2017-06-28 10:42:21 -04:00
< th > Owner< / th >
2017-06-06 09:49:32 -04:00
< th > Name< / th >
< th > Expiry Date< / th >
2017-07-11 12:20:44 -04:00
< th > Days Left< / th >
2017-06-06 09:49:32 -04:00
< / tr >
2017-06-10 23:26:10 -04:00
< / thead >
2017-06-06 09:49:32 -04:00
< tbody >
{% for domain in domains %}
2017-07-13 10:32:24 -04:00
{% if domain.enabled == False %}
< tr class = "danger" >
{% else %}
{% if domain.warning == True %}
< tr class = "warning" >
{% else %}
< tr >
{% endif %}
{% endif %}
2017-06-28 10:42:21 -04:00
< td > < a href = "{{ url_for('admin.dashboard', user_pid=domain.user_id) }}" > {{ domain.owner.email }}< / a > < / td >
2017-06-06 09:49:32 -04:00
< td > < b > < a href = "http://{{ domain.fqdn }}" > {{ domain.fqdn }}< / a > < / b > < / td >
< td > {{ domain.date_expire }}< / td >
2017-07-11 12:20:44 -04:00
< td > {{ domain.daysleft }}< / td >
2017-06-06 09:49:32 -04:00
< / tr >
{% endfor %}
< / tbody >
< / table >
< / div >
< / div >
< / div >
< div class = "col-md-12" >
2017-06-28 10:42:21 -04:00
< div class = "panel panel-warning" id = "addresses" >
2017-06-06 09:49:32 -04:00
< div class = "panel-heading" > Addresses< / div >
< div class = "panel-body" > < p >
< table class = "table table-hover table-striped table-condensed cf" >
< thead >
< tr >
< th > IP< / th >
< th > MAC Addr.< / th >
2017-06-10 23:26:10 -04:00
< th > Reverse DNS< / th >
2017-06-06 09:49:32 -04:00
< / tr >
2017-06-10 23:26:10 -04:00
< / thead >
2017-06-06 09:49:32 -04:00
< tbody >
{% for address in addresses %}
< tr >
2017-06-28 10:42:21 -04:00
{% if address.enabled == False %}< tr class = "danger" > {% else %}< tr > {% endif %}
2017-06-06 09:49:32 -04:00
< td > {{ address.ip }}< / td >
2017-06-09 10:11:03 -04:00
< td > {{ address.mac }}< / td >
2017-06-10 23:26:10 -04:00
< td > {{ address.rdns }}< / td >
2017-06-06 09:49:32 -04:00
{% endfor %}
< / tr >
< / tbody >
< / table >
2017-07-24 06:33:33 -04:00
< button class = "btn btn-default" onclick = "window.open('{{ url_for('admin.addr2pool') }}')" > < span class = "glyphicon glyphicon-plus" aria-hiddent = "true" > < / span > Add IP to pool< / button >
2017-06-06 09:49:32 -04:00
< / div >
< / div >
< / div >
< / div >
< div class = "row" >
< / div >
< / div >
{% endblock %}