summaryrefslogtreecommitdiff
path: root/internal/web/templates
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-24 14:31:48 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-24 14:31:48 +0200
commitc769f80475e99b1f810fbb6c29eade3cc43a3786 (patch)
tree3d1b4fe2a540b6ccbb11256ad26305b15a3c074e /internal/web/templates
parenta87f2fafbda90cc9eeb32ea856356c34e1d880b0 (diff)
downloadlectio-c769f80475e99b1f810fbb6c29eade3cc43a3786.tar.gz
lectio-c769f80475e99b1f810fbb6c29eade3cc43a3786.zip
web: empty pane when no version selected (hidden vset marker); config default checked on fresh load; v0.13.0
Diffstat (limited to 'internal/web/templates')
-rw-r--r--internal/web/templates/index.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html
index 5dbe7da..6920fcb 100644
--- a/internal/web/templates/index.html
+++ b/internal/web/templates/index.html
@@ -24,6 +24,9 @@
<div class="page">
<form id="controls" class="controls" hx-get="/readings" hx-target="#pane" hx-trigger="change">
+ {{/* Always-present marker so the server can tell a form submit with every
+ version unchecked (show nothing) from a fresh visit (config default). */}}
+ <input type="hidden" name="vset" value="1">
<span class="date-nav">
<button type="button" hx-get="/readings" hx-target="#pane"
hx-vals='{"date":"{{.PrevDate}}"}'>&larr;</button>