summaryrefslogtreecommitdiff
path: root/internal/web/templates/settings.html
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 14:24:16 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 14:24:16 +0200
commit855859bdaac101e7e87d5cb0237b7c30f4f4b371 (patch)
treee0d4af3c9082c4b7ceba2d05471c6a162cfe2940 /internal/web/templates/settings.html
parent18578434f41d4fe34438c2f171388109a288c18c (diff)
downloadlectio-855859bdaac101e7e87d5cb0237b7c30f4f4b371.tar.gz
lectio-855859bdaac101e7e87d5cb0237b7c30f4f4b371.zip
web: declutter the UI, fix date arrows, red * for bookmarked verses in reader
Daily page (index.html): - Date arrows now step the date input client-side and dispatch its change, so they move relative to the CURRENT day and update the shown date (they were stuck one step from the initial date, computed server-side). - Theme picker removed (theme lives only in /settings now); bookmarks link removed (bookmarks belong to the reader, not the daily readings). - reader/settings nav + the download links move to a right-aligned .controls-side cluster; essential controls (date, lectionary, versions, parts, layout, mono) stay on the left. mono stops its change bubbling so it no longer refetches. Reader (reader.html + RenderPassage): a bookmarked verse now shows a red "*" (end of line in columns, after the verse number interlinear). Threaded a marked set (keyed "chap:verse") through the reader render path only; the daily RenderReadings path is untouched. Settings (settings.html): Save button moved to the top; removed offline (dead), width and pager (CLI/TUI-only, no web effect) -- their config values are preserved since the handler no longer reads/zeroes them. Footer: source/licence centred. Web tests + full suite green both build modes.
Diffstat (limited to 'internal/web/templates/settings.html')
-rw-r--r--internal/web/templates/settings.html15
1 files changed, 2 insertions, 13 deletions
diff --git a/internal/web/templates/settings.html b/internal/web/templates/settings.html
index 3ae2f41..8e18278 100644
--- a/internal/web/templates/settings.html
+++ b/internal/web/templates/settings.html
@@ -23,6 +23,8 @@
<form class="settings" method="post" action="/settings">
+ <div class="row"><button type="submit">{{.L.WebSave}}</button></div>
+
<label>{{.L.Lectionary}}
<select name="lectionary">
<option value="new" {{if eq .Cfg.Lectionary "new"}}selected{{end}}>{{.L.OptModern}}</option>
@@ -77,30 +79,17 @@
<div class="row">
<label><input type="checkbox" name="all" {{if .Cfg.All}}checked{{end}}> {{.L.OptAll}}</label>
- <label><input type="checkbox" name="offline" {{if .Cfg.Offline}}checked{{end}}> {{.L.WebOffline}}</label>
<label><input type="checkbox" name="web_mono" {{if .Cfg.WebMono}}checked{{end}}> {{.L.Mono}}</label>
</div>
- <label>{{.L.WebWidth}}
- <input type="number" name="width" value="{{.Cfg.Width}}">
- </label>
-
<label>{{.L.WebPort}}
<input type="number" name="web_port" value="{{.Cfg.WebPort}}">
</label>
- <label>{{.L.WebPager}}
- <input type="text" name="pager" value="{{.Cfg.Pager}}">
- </label>
-
<label>books.ini
<textarea name="books" rows="20">{{.Books}}</textarea>
</label>
- <div class="row">
- <button type="submit">{{.L.WebSave}}</button>
- </div>
-
</form>
</div>