Fixes the html of agents pages
							parent
							
								
									779d3e0bf6
								
							
						
					
					
						commit
						6e4657e90f
					
				|  | @ -3,8 +3,8 @@ | |||
| <div class="container-fluid mt-2"> | ||||
|     <div class="row mb-4"> | ||||
|         <div class="col-12 mb-4"> | ||||
|             <h2 class="mb-0">Jilo Agents on platform <?= htmlspecialchars($platform_id) ?> (<?= htmlspecialchars($platformDetails[0]['name']) ?>)</h2>
 | ||||
|             <small>Manage and monitor agents on this platform.</small> | ||||
|             <h2 class="mb-0">Jilo Agents status</h2> | ||||
|             <small>manage and monitor agents on platform <?= htmlspecialchars($platform_id) ?> (<?= htmlspecialchars($platformDetails[0]['name']) ?>).</small>
 | ||||
|         </div> | ||||
|     </div> | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,25 +1,29 @@ | |||
| 
 | ||||
|                 <div class="row"> | ||||
|                     <div class="card w-auto bg-light border-light card-body" style="flex-direction: row;">Latest data from Jilo Agents</div> | ||||
|                 <!-- latest data --> | ||||
|                 <div class="container-fluid mt-2"> | ||||
|                     <div class="row mb-4"> | ||||
|                         <div class="col-12 mb-4"> | ||||
|                             <h2 class="mb-0">Latest data from Jilo Agents</h2> | ||||
|                             <small>gathered for platform <?= htmlspecialchars($platform_id) ?> (<?= htmlspecialchars($platformDetails[0]['name']) ?>)</small>
 | ||||
|                         </div> | ||||
|                     </div> | ||||
| 
 | ||||
|                 <div class="collapse show"> | ||||
|                     <div class="mb-5"> | ||||
|                     <div class="row"> | ||||
|                         <div class="mb-4"> | ||||
| <?php if (!empty($hostsData)) { ?>
 | ||||
| <?php foreach ($hostsData as $host) { ?>
 | ||||
|                             <div class="card mb-4"> | ||||
|                                 <div class="card-header"> | ||||
|                                     <h5 class="mb-0"> | ||||
|                                     <i class="fas fa-network-wired me-2"></i> | ||||
|                                     <?= htmlspecialchars($host['name']) ?>
 | ||||
|                                     <small class="text-muted">(<?= htmlspecialchars($host['address']) ?>)</small>
 | ||||
|                                         <i class="fas fa-network-wired me-2 text-secondary"></i> | ||||
|                                         <?= htmlspecialchars($host['name']) ?><small class="text-muted"> (<?= htmlspecialchars($host['address']) ?>)</small>
 | ||||
|                                     </h5> | ||||
|                                 </div> | ||||
|                                 <div class="card-body"> | ||||
| <?php foreach ($host['agents'] as $agent) { ?>
 | ||||
|                                     <div class="mb-4"> | ||||
|                                         <h6 class="border-bottom pb-2"> | ||||
|                                         <i class="fas fa-robot me-2"></i> | ||||
|                                             <i class="fas fa-robot me-2 text-secondary"></i> | ||||
|                                             <?= htmlspecialchars($agent['name']) ?> agent
 | ||||
|                                         </h6> | ||||
|                                         <table class="table table-results table-striped table-hover table-bordered"> | ||||
|  | @ -29,9 +33,7 @@ | |||
|                                                     <th> | ||||
|                                                         Latest value | ||||
|                                                         <br> | ||||
|                                                     <small class="text-muted"> | ||||
|                                                         <?= date('d M Y H:i:s', strtotime($agent['timestamp'])) ?>
 | ||||
|                                                     </small> | ||||
|                                                         <small class="text-muted"><?= date('d M Y H:i:s', strtotime($agent['timestamp'])) ?></small>
 | ||||
|                                                     </th> | ||||
|                                                     <th> | ||||
|                                                         Previous value | ||||
|  | @ -48,9 +50,7 @@ | |||
| } | ||||
| if ($prevTimestamp) { ?>
 | ||||
|                                                         <br> | ||||
|                                                         <small class="text-muted"> | ||||
|                                                             <?= date('d M Y H:i:s', strtotime($prevTimestamp)) ?>
 | ||||
|                                                         </small> | ||||
|                                                         <small class="text-muted"><?= date('d M Y H:i:s', strtotime($prevTimestamp)) ?></small>
 | ||||
| <?php } ?>
 | ||||
|                                                     </th> | ||||
|                                                 </tr> | ||||
|  | @ -113,4 +113,5 @@ | |||
| <?php } ?>
 | ||||
|                         </div> | ||||
|                     </div> | ||||
|                 </div> | ||||
|                 <!-- /latest data --> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue