2022-09-22 20:37:29 -04:00
|
|
|
{% extends 'layout.twig' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<!-- page header -->
|
|
|
|
<header class="row">
|
|
|
|
<div class="columns twelve">
|
|
|
|
<h1>Welcome to MCST!</h1>
|
|
|
|
<p>Using MCST you can easily manage your Minecraft: Java Edition servers.</p>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<!-- list of servers -->
|
|
|
|
<section class="row">
|
|
|
|
<div class="columns twelve">
|
|
|
|
<h3>List of servers:</h3>
|
2022-09-24 17:33:59 -04:00
|
|
|
{% if servers|length < 1 %}
|
|
|
|
<p>There are currently no servers registered.</p>
|
|
|
|
{% else %}
|
|
|
|
<table class="u-full-width">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Server name</th>
|
|
|
|
<th>Minecraft version</th>
|
|
|
|
<th>State</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
{% for m in servers %}
|
|
|
|
<td>{{ m.getName() }}</td>
|
|
|
|
<td>{{ m.getVersion() }}</td>
|
|
|
|
<td>{{ m.getState() ? 'Running' : 'Stopped' }}</td>
|
|
|
|
<td>
|
|
|
|
<a href="/server/{{ m.getName() }}/start">Start</a>
|
|
|
|
<a href="/server/{{ m.getName() }}/stop">Stop</a>
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
2022-09-22 20:37:29 -04:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{% endblock %}
|