diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-29 14:37:23 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-29 14:37:23 +0200 |
| commit | af67ff8a079bf92a01a462fbb525eddb348eefc1 (patch) | |
| tree | b5f1356c4e6a882ac094f3401ea092c0c57d8306 /internal/web/templates | |
| parent | b07ecd9d57793003a77da0e172016c9f44ef372d (diff) | |
| download | lectio-af67ff8a079bf92a01a462fbb525eddb348eefc1.tar.gz lectio-af67ff8a079bf92a01a462fbb525eddb348eefc1.zip | |
web: move lectionary + mono to settings only; make reader link prominent
Lectionary becomes settings-only (kept as a hidden field so readings/export/calendar still use the configured value); mono toggle removed (settings has it). The reader link is uppercased + bold as the primary action.
Diffstat (limited to 'internal/web/templates')
| -rw-r--r-- | internal/web/templates/index.html | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html index 50ffdac..3379dc1 100644 --- a/internal/web/templates/index.html +++ b/internal/web/templates/index.html @@ -41,12 +41,9 @@ function stepDate(n){ <button type="button" onclick="stepDate(1)">→</button> </span> - <label>{{.L.Lectionary}} - <select name="lectionary"> - <option value="new" {{if eq .Lectionary "new"}}selected{{end}}>{{.L.OptModern}}</option> - <option value="traditional" {{if eq .Lectionary "traditional"}}selected{{end}}>{{.L.OptTraditional}}</option> - </select> - </label> + {{/* Lectionary is a setting now (see /settings), carried as a hidden field so + the readings, export and month-calendar links still use it. */}} + <input type="hidden" name="lectionary" value="{{.Lectionary}}"> {{range .VersionOpts}} <label id="ver-{{.Code}}"><input type="checkbox" name="v" value="{{.Code}}" {{if .Checked}}checked{{end}}> {{.Code}}</label> @@ -66,17 +63,12 @@ function stepDate(n){ <option value="interlinear" {{if eq .Display "interlinear"}}selected{{end}}>{{.L.OptInterlinear}}</option> </select> </label> - - {{/* mono lives in the form but stops its change from bubbling, so toggling - it flips the body class without refetching the readings. */}} - <label class="mono-toggle"><input type="checkbox" {{if .Mono}}checked{{end}} - onchange="event.stopPropagation();document.body.classList.toggle('mono', this.checked)"> {{.L.Mono}}</label> </div> {{/* Utility links, pinned to the top-right (see #controls / .controls-side). The export URLs are built from the live control values at click time. */}} <span class="controls-side"> - <a class="nav-link" href="/reader">{{.L.NavReader}} →</a> + <a class="nav-link nav-reader" href="/reader">{{.L.NavReader}} →</a> <a class="nav-link" href="/settings">{{.L.NavSettings}}</a> <span class="export">{{.L.Export}}: <a href="#" onclick="location='/export?fmt=txt&'+new URLSearchParams(new FormData(document.getElementById('controls'))).toString();return false;">txt</a> |
