proxadmin/app/templates/admin/list_deployments.html

66 lines
1.7 KiB
HTML
Raw Normal View History

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>
<table class="table table-hover table-striped table-condensed cf">
<thead>
<tr>
<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 %}
2017-08-08 09:43:31 -04:00
<td><a class="rrd" data-toggle="tooltip" title="Protected: {{ deploy.protected }}<br />Online: {{ deploy.connected }}<br />ID: {{ deploy.machine_id }}"><b>{% if deploy.protected == True %}<font color="green">{% else %}<font color="red">{% endif %}{{ deploy.machine_alias }}</font></b></a></td>
2017-07-24 08:16:47 -04:00
<td>{{ deploy.machine_cpu }}</td>
<td>{{ deploy.machine_mem }} MB</td>
<td>{{ deploy.machine_hdd }} GB</td>
{% if deploy.date_last_charge == None %}
<td>Never</td>
{% else %}
2017-07-24 08:16:47 -04:00
<td>{{ moment(deploy.date_last_charge).format('lll') }} ({{ moment(deploy.date_last_charge).fromNow() }})</td>
{% endif %}
2017-07-24 08:16:47 -04:00
<td>{{ deploy.daysleft }}</td>
2018-01-29 11:29:35 -05:00
<td><a href="{{ url_for('admin.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>
<div class="row">
</div>
</div>
{% endblock %}