aboutsummaryrefslogtreecommitdiff
path: root/internal/web/templates
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates')
-rw-r--r--internal/web/templates/index.html9
-rw-r--r--internal/web/templates/lookup.html20
2 files changed, 1 insertions, 28 deletions
diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html
index 8c88779..cc56a09 100644
--- a/internal/web/templates/index.html
+++ b/internal/web/templates/index.html
@@ -1,7 +1,6 @@
{{/* index.html renders the full lectio-web page: top-bar controls (date,
lectionary, version checkboxes, all/gospel toggle, display select,
- theme select), a passage-lookup form, and the pre-rendered reading pane
- (#pane).
+ theme select) and the pre-rendered reading pane (#pane).
The controls form (#controls) carries hx-get="/readings" and fires on
any "change" bubbling up from its fields (htmx auto-includes an
@@ -72,12 +71,6 @@
<label class="mono-toggle"><input type="checkbox" {{if .Mono}}checked{{end}}
onchange="document.body.classList.toggle('mono', this.checked)"> mono</label>
- <form id="lookup-form" class="controls" hx-get="/lookup" hx-target="#lookup-results" hx-include="#controls">
- <input type="text" name="ref" placeholder="np. J 20:1" value="{{.Ref}}">
- <button type="submit">szukaj</button>
- </form>
- <div id="lookup-results">{{.Lookup}}</div>
-
<div id="pane">{{.Reading}}</div>
</div>
diff --git a/internal/web/templates/lookup.html b/internal/web/templates/lookup.html
deleted file mode 100644
index c8bc2a7..0000000
--- a/internal/web/templates/lookup.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{{/* lookup.html renders the passage-lookup fragment: one .column per
- requested version, each version's matched bible.Verse rows plus any
- sub-refs the corpus had no entry for. Structurally mirrors
- readings.html's .columns/.column/.block classes so theme CSS restyles
- both panes the same way. */}}
-{{if .}}
-<div class="columns">
- {{range .}}
- <div class="column">
- <h3 class="version-label">{{.Version}}</h3>
- {{range .Verses}}
- <p class="block verse"><span class="vnum">{{.Chapter}}:{{.Verse}}</span> {{.Text}}</p>
- {{end}}
- {{if .Missing}}
- <p class="block error">brak: {{range $i, $m := .Missing}}{{if $i}}, {{end}}{{$m}}{{end}}</p>
- {{end}}
- </div>
- {{end}}
-</div>
-{{end}}