aboutsummaryrefslogtreecommitdiff
path: root/internal/server/templates/index.html
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-20 05:37:38 -0800
committerFuwn <[email protected]>2026-01-20 05:37:38 -0800
commit92bd23fa5b6a1ad239a007dc905ce101a37fbe31 (patch)
treed66525325180d18147fd4d2e49f56f0c316a8ea6 /internal/server/templates/index.html
parentfeat: Add hide_ping option to hide response time (diff)
downloadkaze-92bd23fa5b6a1ad239a007dc905ce101a37fbe31.tar.xz
kaze-92bd23fa5b6a1ad239a007dc905ce101a37fbe31.zip
fix: Hide ping in tooltips when hide_ping is enabled
Diffstat (limited to 'internal/server/templates/index.html')
-rw-r--r--internal/server/templates/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/server/templates/index.html b/internal/server/templates/index.html
index 62a56b4..d689416 100644
--- a/internal/server/templates/index.html
+++ b/internal/server/templates/index.html
@@ -111,7 +111,7 @@
<!-- History Bar -->
<div class="mt-3 flex gap-px">
{{range $monitor.Ticks}}
- <div class="flex-1 h-6 rounded-sm {{tickColor .}}"{{if not $monitor.DisablePingTooltips}} data-tooltip='{{tickTooltipData . $.TickMode $.Timezone}}'{{end}}></div>
+ <div class="flex-1 h-6 rounded-sm {{tickColor .}}"{{if not $monitor.DisablePingTooltips}} data-tooltip='{{tickTooltipData . $.TickMode $.Timezone $monitor.HidePing}}'{{end}}></div>
{{else}}
{{range seq $.TickCount}}
<div class="flex-1 h-6 rounded-sm bg-neutral-200 dark:bg-neutral-800"{{if not $monitor.DisablePingTooltips}} data-tooltip='{"header":"No data"}'{{end}}></div>