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>
|
2022-10-14 10:59:28 -04:00
|
|
|
<th>Port</th>
|
2022-09-24 17:33:59 -04:00
|
|
|
<th>State</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2022-09-24 21:29:12 -04:00
|
|
|
{% for m in servers %}
|
|
|
|
<tr class="serverItem" data-server-name="{{ m.getName() }}">
|
|
|
|
<td class="serverName">{{ m.getName() }}</td>
|
|
|
|
<td class="serverVersion">{{ m.getVersion() }}</td>
|
2022-10-14 10:59:28 -04:00
|
|
|
<td class="serverPort">{{ m.getProperty('server-port') }}</td>
|
2022-09-24 21:29:12 -04:00
|
|
|
<td class="serverState">{{ m.getState() ? 'Running' : 'Stopped' }}</td>
|
2022-09-24 17:33:59 -04:00
|
|
|
<td>
|
2022-09-24 20:45:37 -04:00
|
|
|
<a href="/server/{{ m.getName() }}/start"><i class="fa-solid fa-play"></i></a>
|
|
|
|
<a href="/server/{{ m.getName() }}/stop"><i class="fa-solid fa-stop"></i></a>
|
2022-09-24 17:33:59 -04:00
|
|
|
</td>
|
2022-09-24 21:29:12 -04:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2022-09-24 17:33:59 -04:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
2022-09-22 20:37:29 -04:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{% endblock %}
|