2017-07-24 08:16:47 -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-07-25 10:33:23 -04:00
|
|
|
<div class="panel panel-info" id="deployments">
|
2017-07-24 08:16:47 -04:00
|
|
|
<div class="panel-heading">Deployments</div>
|
|
|
|
<div class="panel-body"><p>
|
2018-02-24 12:35:36 -05:00
|
|
|
|
|
|
|
{% include "admin/menu_deployments.html" %}
|
2018-02-21 18:12:44 -05:00
|
|
|
|
2018-01-30 22:08:33 -05:00
|
|
|
<div class="no-more-tables">
|
2017-07-24 08:16:47 -04:00
|
|
|
<table class="table table-hover table-striped table-condensed cf">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-01-31 18:55:35 -05:00
|
|
|
<th>Server</th>
|
|
|
|
<th>VLAN</th>
|
2017-07-24 08:16:47 -04:00
|
|
|
<th>Alias</th>
|
|
|
|
<th>CPU</th>
|
|
|
|
<th>Mem</th>
|
|
|
|
<th>HDD</th>
|
|
|
|
<th>Last Charged</th>
|
|
|
|
<th>Days Left</th>
|
2018-01-29 11:29:35 -05:00
|
|
|
<th>Owner</th>
|
2017-07-24 08:16:47 -04:00
|
|
|
</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 %}
|
2018-01-31 18:55:35 -05:00
|
|
|
<td data-title="Server">{{ deploy.server.name }}</td>
|
|
|
|
<td data-title="VLAN">{% for vlan in deploy.inv_pubvlans %}{{ vlan.vlan_id }}{% endfor %}</td>
|
2018-04-07 08:55:24 -04:00
|
|
|
<td data-title="Alias"><a class="rrd" data-toggle="tooltip" title="Protected: {{ deploy.protected }} ID: {{ deploy.machine_id }}"><b>{% if status[deploy.machine_id] == 'unknown' %}<font color="red">{% else %}<font color="green">{% endif %}{{ deploy.machine_alias }}</font></b></a></td>
|
2018-01-30 22:08:33 -05:00
|
|
|
<td data-title="CPU">{{ deploy.machine_cpu }}</td>
|
|
|
|
<td data-title="Memory">{{ deploy.machine_mem }} MB</td>
|
|
|
|
<td data-title="HDD">{{ deploy.machine_hdd }} GB</td>
|
2017-09-09 02:32:04 -04:00
|
|
|
{% if deploy.date_last_charge == None %}
|
2018-01-30 22:08:33 -05:00
|
|
|
<td data-title="Last Charged">Never</td>
|
2017-09-09 02:32:04 -04:00
|
|
|
{% else %}
|
2018-01-30 22:08:33 -05:00
|
|
|
<td data-title="Last Charged">{{ moment(deploy.date_last_charge).format('lll') }} ({{ moment(deploy.date_last_charge).fromNow() }})</td>
|
2017-09-09 02:32:04 -04:00
|
|
|
{% endif %}
|
2018-01-30 22:08:33 -05:00
|
|
|
<td data-title="Days Left">{{ deploy.daysleft }}</td>
|
2018-03-31 20:17:02 -04:00
|
|
|
<td data-title="Owner"><a href="{{ url_for('panel.dashboard', user_pid=deploy.user_id) }}">{{ deploy.owner.email }}</a></td>
|
2017-07-24 08:16:47 -04:00
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
</div>
|
2018-01-31 12:41:20 -05:00
|
|
|
|
2017-07-24 08:16:47 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|