172 lines
4.2 KiB
HTML
172 lines
4.2 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block styles %}
|
|
{{ super() }}
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block page_content %}
|
|
<div class="row">
|
|
{% include "admin/admin_tasks.html" %}
|
|
|
|
<div class="col-md-12">
|
|
<div class="panel panel-warning" id="deployments">
|
|
<div class="panel-heading">Deployments</div>
|
|
<div class="panel-body"><p>
|
|
<table class="table table-hover table-striped table-condensed cf">
|
|
<thead>
|
|
<tr>
|
|
<th>Owner</th>
|
|
<th>Cube ID</th>
|
|
<th>Alias</th>
|
|
<th>CPU</th>
|
|
<th>Mem</th>
|
|
<th>HDD</th>
|
|
<th>Price</th>
|
|
<th>Last Charged</th>
|
|
<th>Days Left</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for deploy in deployments %}
|
|
{% if deploy.enabled == False %}
|
|
<tr class="danger">
|
|
{% else %}
|
|
{% if deploy.warning == True %}
|
|
<tr class="warning">
|
|
{% else %}
|
|
<tr>
|
|
{% endif %}
|
|
{% endif %}
|
|
<td><a href="{{ url_for('admin.dashboard', user_pid=deploy.user_id) }}">{{ deploy.owner.email }}</a></td>
|
|
<td>{{ deploy.machine_id }}</td>
|
|
<td>{{ deploy.machine_alias }}</font></td>
|
|
<td>{{ deploy.machine_cpu }}</td>
|
|
<td>{{ deploy.machine_mem }} MB</td>
|
|
<td>{{ deploy.machine_hdd }} GB</td>
|
|
<td>{{ deploy.price }}</td>
|
|
<td>{{ moment(deploy.date_last_charge).format('lll') }} ({{ moment(deploy.date_last_charge).fromNow() }})</td>
|
|
<td>{{ deploy.daysleft }}</td>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
<div class="panel panel-warning" id="services">
|
|
<div class="panel-heading">Services</div>
|
|
<div class="panel-body"><p>
|
|
<table class="table table-hover table-striped table-condensed cf">
|
|
<thead>
|
|
<tr>
|
|
<th>Owner</th>
|
|
<th>Category</th>
|
|
<th>Description</th>
|
|
<th>Price</th>
|
|
<th>Last Charged</th>
|
|
<th>Days Left</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for service in services %}
|
|
{% if service.enabled == False %}
|
|
<tr class="danger">
|
|
{% else %}
|
|
{% if service.warning == True %}
|
|
<tr class="warning">
|
|
{% else %}
|
|
<tr>
|
|
{% endif %}
|
|
{% endif %}
|
|
<td><a href="{{ url_for('admin.dashboard', user_pid=service.user_id) }}">{{ service.owner.email }}</a></td>
|
|
<td>{{ service.category }}</td>
|
|
<td>{{ service.description }}</td>
|
|
<td>{{ service.price }}</td>
|
|
<td>{{ moment(service.date_last_charge).format('ll') }} ({{ moment(service.date_last_charge).fromNow() }})</td>
|
|
<td>{{ service.daysleft }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-12">
|
|
<div class="panel panel-warning" id="domains">
|
|
<div class="panel-heading">Domains</div>
|
|
<div class="panel-body"><p>
|
|
<table class="table table-hover table-striped table-condensed cf">
|
|
<thead>
|
|
<tr>
|
|
<th>Owner</th>
|
|
<th>Name</th>
|
|
<th>Expiry Date</th>
|
|
<th>Days Left</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for domain in domains %}
|
|
{% if domain.enabled == False %}
|
|
<tr class="danger">
|
|
{% else %}
|
|
{% if domain.warning == True %}
|
|
<tr class="warning">
|
|
{% else %}
|
|
<tr>
|
|
{% endif %}
|
|
{% endif %}
|
|
<td><a href="{{ url_for('admin.dashboard', user_pid=domain.user_id) }}">{{ domain.owner.email }}</a></td>
|
|
<td><b><a href="http://{{ domain.fqdn }}">{{ domain.fqdn }}</a></b></td>
|
|
<td>{{ domain.date_expire }}</td>
|
|
<td>{{ domain.daysleft }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
<div class="panel panel-warning" id="addresses">
|
|
<div class="panel-heading">Addresses</div>
|
|
<div class="panel-body"><p>
|
|
<table class="table table-hover table-striped table-condensed cf">
|
|
<thead>
|
|
<tr>
|
|
<th>Owner</th>
|
|
<th>IP</th>
|
|
<th>MAC Addr.</th>
|
|
<th>Reverse DNS</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for address in addresses %}
|
|
<tr>
|
|
{% if address.enabled == False %}<tr class="danger">{% else %}<tr>{% endif %}
|
|
<td><a href="{{ url_for('admin.dashboard', user_pid=address.user_id) }}">{{ address.owner.email }}</a></td>
|
|
<td>{{ address.ip }}</td>
|
|
<td>{{ address.mac }}</td>
|
|
<td>{{ address.rdns }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|