console/app/templates/administrator/containers/index.html

43 lines
1.4 KiB
HTML
Raw Normal View History

2015-12-01 02:45:57 +03:00
{% extends 'administrator/_layout.auth.html' %}
2015-12-14 01:49:38 +03:00
{% block title %}Containers{% endblock %}
2015-12-01 02:45:57 +03:00
2015-12-14 01:49:38 +03:00
{% block subtitle %}Containers list{% endblock %}
2015-12-01 02:45:57 +03:00
{% block content %}
2015-12-14 01:49:38 +03:00
Total: {{ containers.total }}
2015-12-01 02:45:57 +03:00
<table class="table table-bordered">
<thead>
<tr>
<th>Id</th>
2015-12-14 01:49:38 +03:00
<th>Datacenter</th>
<th>Server</th>
<th>User</th>
<th>IPv4</th>
<th>IPv6</th>
2015-12-01 02:45:57 +03:00
<th>Status</th>
</tr>
</thead>
<tbody>
2015-12-14 01:49:38 +03:00
{% if containers.total == 0 %}
2015-12-01 02:45:57 +03:00
<tr>
<td colspan="6">Нет ни одного правила</td>
</tr>
{% else %}
2015-12-14 01:49:38 +03:00
{% for container in containers['items'] %}
2015-12-01 02:45:57 +03:00
<tr>
2015-12-14 01:49:38 +03:00
<td>{{ container.id }}</td>
<td>{{ container.datacenter.name }}</td>
<td>{{ container.server.hostname }}</td>
<td>{{ container.user.email }}</td>
<td>{{ container.ipv4 }}</td>
<td>{{ container.ipv6 }}</td>
<td>{{ container.status }}</td>
2015-12-01 02:45:57 +03:00
<td><a href="#">Edit</a></td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
{% endblock %}