Adds agents to the status page

main
Yasen Pramatarov 2024-10-22 18:03:34 +03:00
parent ed9ce2bb07
commit 73d429647c
4 changed files with 31 additions and 1 deletions

View File

@ -3,6 +3,17 @@
// Jilo components status checks
//
require '../app/classes/agent.php';
$agentObject = new Agent($dbWeb);
include '../app/templates/status-server.php';
foreach ($platformsAll as $platform) {
include '../app/templates/status-platform.php';
$agentDetails = $agentObject->getAgentDetails($platform['id']);
foreach ($agentDetails as $agent) {
include '../app/templates/status-agent.php';
}
}
?>

View File

@ -0,0 +1,9 @@
<!-- jilo agent status -->
<div class="card text-center w-75 mx-lef" style="padding-left: 80px;">
<div class="card-body">
<p class="card-text text-left" style="text-align: left;">
Jilo Agent: <?= htmlspecialchars($agent['agent_description']) ?>
</p>
</div>
</div>

View File

@ -0,0 +1,10 @@
<!-- jitsi platform status -->
<br />
<div class="card text-center w-75 mx-lef" style="padding-left: 40px;">
<div class="card-body">
<p class="card-text text-left" style="text-align: left;">
Jitsi Meet platform: <?= htmlspecialchars($platform['name']) ?>
</p>
</div>
</div>

View File

@ -1,5 +1,5 @@
<!-- jilo agents -->
<!-- jilo status -->
<div class="card text-center w-75 mx-lef">
<p class="h4 card-header">Jilo platform status</p>
<div class="card-body">