asdsad
This commit is contained in:
@@ -3,14 +3,19 @@ $assets = app()->assets();
|
||||
$assets->addStyle('/module/pihole/asset?file=pihole.css');
|
||||
$assets->addScript('/module/pihole/asset?file=pihole.js', 'footer', true);
|
||||
|
||||
$settings = modules()->settings('pihole');
|
||||
$instances = module_fn('pihole', 'instances');
|
||||
$hasConfig = !empty($instances);
|
||||
$refreshSeconds = (int)($settings['queries_refresh_sec'] ?? 5);
|
||||
if ($refreshSeconds < 0) {
|
||||
$refreshSeconds = 5;
|
||||
}
|
||||
?>
|
||||
<?= module_shell_header('pihole', [
|
||||
'title' => 'Zugriffe & Blockings',
|
||||
'description' => 'Aktuelle Blockings, Top Clients und Status pro Instanz.',
|
||||
]) ?>
|
||||
<div class="module-flow pihole-page" data-pihole-page="queries">
|
||||
<div class="module-flow pihole-page" data-pihole-page="queries" data-refresh-seconds="<?= e((string)$refreshSeconds) ?>">
|
||||
<?php if (!$hasConfig): ?>
|
||||
<div class="module-box">
|
||||
<strong>Keine Instanzen konfiguriert</strong>
|
||||
|
||||
Reference in New Issue
Block a user