Added a version number display (#78)

* Added a version number

* Appends version number when loading subpages
This commit is contained in:
Michael Green
2023-09-01 23:48:08 +10:00
committed by GitHub
parent 8e922182e2
commit 4b6174e3e2
11 changed files with 88 additions and 16 deletions

View File

@@ -11,6 +11,10 @@
<th>Bugs and Feature Requests</th>
<td><a href="https://github.com/gaseous-project/gaseous-server/issues" class="romlink">https://github.com/gaseous-project/gaseous-server/issues</a></td>
</tr>
<tr>
<th>Server Version</th>
<td id="settings_appversion"></td>
</tr>
<tr>
<td colspan="2">
<h3>Data Sources</h2>
@@ -38,4 +42,13 @@
The Old School Emulation Center
</td>
</tr>
</table>
</table>
<script type="text/javascript">
ajaxCall('/api/v1/System/Version', 'GET', function (result) {
if (result) {
var versionBox = document.getElementById('settings_appversion');
versionBox.innerHTML = result;
}
});
</script>