Updated the start/stop server icons; added routes to handle server stop/start

This commit is contained in:
2022-09-24 20:45:37 -04:00
parent b41b246483
commit 5699c9cf6a
5 changed files with 75 additions and 8 deletions

View File

@ -33,8 +33,8 @@
<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>
<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>
</td>
{% endfor %}
</tr>

View File

@ -5,6 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minecraft Server Tool</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
<link rel="stylesheet" href="/css/wyrm.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>