fix(admin): add syntax help for the update-check interval field

Reuses the existing info-toggle/info-details pattern (already used for
the HTTPS override, TLS extra hosts, and DNS upstream fields) rather
than inventing a new affordance, so users aren't left guessing at Go's
duration syntax when typing a custom interval.
This commit is contained in:
Tobias Gesellchen
2026-08-10 23:17:36 +02:00
parent 9f61d00b2d
commit b138892c2a
+6
View File
@@ -320,6 +320,12 @@
<div style="margin-left: 20px">
<label for="update-check-interval">Check Interval:</label>
<input type="text" id="update-check-interval" placeholder="24h" style="width: 100px"/>
<span class="info-toggle" onclick="toggleInfo('update-check-interval-info')"></span>
<div id="update-check-interval-info" class="info-details">
Go duration syntax: a number followed by a unit, optionally combined
(e.g. <code>24h</code>, <code>90m</code>, <code>1h30m</code>, <code>45s</code>).<br/>
Units: <code>h</code> (hours), <code>m</code> (minutes), <code>s</code> (seconds).
</div>
</div>
<div style="font-size: 0.8em; color: #666; margin-top: 4px;">
Makes one unauthenticated GET request to api.github.com per interval when enabled.