Added daemon list to frontend

This commit is contained in:
Ziver Koc 2024-01-25 14:42:28 +01:00
parent 47f730b76e
commit 2af860f694

View file

@ -37,13 +37,14 @@
<div class="col-md-12">
<div class="panel panel-default drop-shadow">
<div class="panel-heading">Active Controllers</div>
<div class="panel-heading">Controllers</div>
<div class="panel-body">
<table class="table table-hover table-condensed">
<thead>
<th class="col-md-3">Name</th>
<th class="col-md-1">Status</th>
<th class="col-md-1">Registered Devices</th>
<th class="col-md-1 text-right">Actions</th>
</thead>
{{#controllers}}
@ -53,6 +54,7 @@
{{#.isAvailable()}}<span class="label label-success">Running</span>{{/.isAvailable()}}
{{^.isAvailable()}}<span class="label label-secondary">Down</span>{{/.isAvailable()}}
</td>
<td>{{.size()}}</td>
<td>
{{#.isScannable()}}
<div class="btn-toolbar pull-right">
@ -81,6 +83,25 @@
</div>
</div>
<div class="col-md-12">
<div class="panel panel-default drop-shadow">
<div class="panel-heading">Daemons</div>
<div class="panel-body">
<table class="table table-hover table-condensed">
<thead>
<th class="col-md-6">Name</th>
</thead>
{{#daemons}}
<tr>
<td>{{.getClass().getName()}}</td>
</tr>
{{/daemons}}
</table>
</div>
</div>
</div>
<script>
$(function (){
$(".toggle-switch").on("switchChange.bootstrapSwitch", function (event, state) {