capsul-flask/capsulflask/templates/capsuls.html

43 lines
1010 B
HTML
Raw Normal View History

{% extends 'base.html' %}
2020-05-11 16:57:39 +00:00
{% block title %}Console{% endblock %}
{% block content %}
<div class="third-margin">
<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-11 16:57:39 +00:00
<table>
<thead>
<tr>
<th>id</th>
<th>size</th>
<th>ipv4</th>
<th>os</th>
<th>created</th>
</tr>
</thead>
<tbody>
{% for vm in vms %}
<tr>
<td><a href="/console/{{ vm['id'] }}">{{ vm["id"] }}</a></td>
2020-05-11 16:57:39 +00:00
<td>{{ vm["size"] }}</td>
<td class="{{ vm['ipv4_status'] }}">{{ vm["ipv4"] }}</td>
2020-05-11 16:57:39 +00:00
<td>{{ vm["os"] }}</td>
<td>{{ vm["created"] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
You don't have any Capsuls running. <a href="/console/create">Create one</a> today!
{% endif %}
</div>
2020-05-11 16:57:39 +00:00
{% endblock %}
{% block pagesource %}/templates/capsuls.html{% endblock %}