Small final fixes to components and participants pages

main
Yasen Pramatarov 2025-01-29 16:05:56 +02:00
parent a96b203021
commit 170e885251
4 changed files with 5 additions and 6 deletions

View File

@ -45,7 +45,7 @@ if ($response['db'] === null) {
}
// pagination variables
$items_per_page = 15;
$items_per_page = 20;
$offset = ($currentPage -1) * $items_per_page;
// jitsi component events list

View File

@ -72,7 +72,7 @@ if ($response['db'] === null) {
$participantObject = new Participant($db);
// pagination variables
$items_per_page = 15;
$items_per_page = 20;
$offset = ($currentPage -1) * $items_per_page;
// search and list specific participant ID

View File

@ -80,7 +80,7 @@
</a>
</td>
<td><?= htmlspecialchars($row['loglevel']) ?></td>
<td><span class="text-muted"><?= date('d M Y H:i', strtotime($row['time'])) ?></span></td>
<td><span class="text-muted"><?= date('d M Y H:i:s', strtotime($row['time'])) ?></span></td>
<td>
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=components&id=<?= htmlspecialchars($row['component ID'] ?? '') ?>">
<?= htmlspecialchars($row['component ID'] ?? '') ?>

View File

@ -100,9 +100,8 @@
<?php } elseif ($key === 'component') { ?>
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=components&name=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
<?php
// in general listings we don't show seconds and miliseconds
} elseif ($key === 'start' || $key === 'end') { ?>
<td><?= htmlspecialchars(substr($column ?? '', 0, -7)) ?></td>
} elseif ($key === 'time' || $key === 'start' || $key === 'end') { ?>
<td><?= date('d M Y H:i:s',strtotime($column)) ?></td>
<?php } else { ?>
<td><?= htmlspecialchars($column ?? '') ?></td>
<?php }