47 lines
No EOL
1.8 KiB
HTML
47 lines
No EOL
1.8 KiB
HTML
{% extends 'administrator/_layout.auth.html' %}
|
|
|
|
{% set title="Servers" %}
|
|
|
|
{% set subtitle="Servers" %}
|
|
|
|
{% block content %}
|
|
<p>Total: {{ servers.total }}. <a href="{{ url_for('administrator.servers_create') }}">Create new</a>.</p>
|
|
<table class="table table-bordered" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Datacenter</th>
|
|
<th>Created</th>
|
|
<th>IP</th>
|
|
<th>Hostname</th>
|
|
<th>Status</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% if servers.total == 0 %}
|
|
<tr>
|
|
<td colspan="7">No servers.</td>
|
|
</tr>
|
|
{% else %}
|
|
{% for server in servers['items'] %}
|
|
<tr>
|
|
<td nowrap>{{ server.id }}</td>
|
|
<td><a href="{{ url_for('administrator.datacenters_edit', dc_id=server.datacenter.id|string) }}">{{ server.datacenter.name }}</a></td>
|
|
<td>{{ server.created }}</td>
|
|
<td>{{ server.ip }}</td>
|
|
<td>{{ server.hostname }}</td>
|
|
<td>
|
|
{% if server.status == 0 %}
|
|
<span class="label label-danger">Inactive</span>
|
|
{% else %}
|
|
<span class="label label-success">Active</span>
|
|
{% endif %}
|
|
</td>
|
|
<td><a href="{{ url_for('administrator.server_edit', server_id=server.id) }}">Edit</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %} |