aboutsummaryrefslogtreecommitdiff
path: root/internal/web/templates/lookup.html
blob: c8bc2a7c260aee0ae6219456aec73d4dfa7a6afd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{/* 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}}