2020-05-11 20:13:20 +00:00
|
|
|
{% extends 'base.html' %}
|
2020-05-11 16:57:39 +00:00
|
|
|
|
2020-05-12 01:34:12 +00:00
|
|
|
{% block title %}Capsuls{% endblock %}
|
2020-05-11 16:57:39 +00:00
|
|
|
|
2020-05-11 20:13:20 +00:00
|
|
|
{% block content %}
|
2020-05-13 05:28:53 +00:00
|
|
|
<div class="row third-margin">
|
2020-05-11 20:13:20 +00:00
|
|
|
<h1>Capsuls</h1>
|
|
|
|
</div>
|
|
|
|
<div class="third-margin">
|
|
|
|
{% if has_vms %}
|
|
|
|
<div class="row third-margin justify-end">
|
|
|
|
<a href="/console/create">Create Capsul</a>
|
|
|
|
</div>
|
2020-05-13 05:28:53 +00:00
|
|
|
<div class="row">
|
|
|
|
<table>
|
|
|
|
<thead>
|
2020-05-11 16:57:39 +00:00
|
|
|
<tr>
|
2020-05-13 05:28:53 +00:00
|
|
|
<th>id</th>
|
|
|
|
<th>size</th>
|
|
|
|
<th>cpu</th>
|
|
|
|
<th>mem</th>
|
|
|
|
<th>ipv4</th>
|
|
|
|
<th>os</th>
|
|
|
|
<th>created</th>
|
2020-05-11 16:57:39 +00:00
|
|
|
</tr>
|
2020-05-13 05:28:53 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for vm in vms %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="/console/{{ vm['id'] }}">{{ vm["id"] }}</a></td>
|
|
|
|
<td>{{ vm["size"] }}</td>
|
|
|
|
<td class="metrics"><img src="/metrics/cpu/{{ vm['id'] }}/5m/s"/></td>
|
|
|
|
<td class="metrics"><img src="/metrics/memory/{{ vm['id'] }}/5m/s"/></td>
|
|
|
|
<td class="{{ vm['ipv4_status'] }}">{{ vm["ipv4"] }}</td>
|
|
|
|
<td>{{ vm["os"] }}</td>
|
|
|
|
<td>{{ vm["created"] }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2020-05-11 16:57:39 +00:00
|
|
|
{% else %}
|
2020-05-13 05:28:53 +00:00
|
|
|
<div class="row">You don't have any Capsuls running. <a href="/console/create">Create one</a> today!</div>
|
2020-05-11 16:57:39 +00:00
|
|
|
{% endif %}
|
2020-05-11 20:13:20 +00:00
|
|
|
</div>
|
2020-05-11 16:57:39 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block pagesource %}/templates/capsuls.html{% endblock %}
|