aboutsummaryrefslogtreecommitdiff
path: root/internal/web/templates/readings-interlinear.html
blob: 0ba7c02dc230d22c0b5222ba47c03e356c5b8639 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{{/* readings-interlinear.html renders the reading pane fragment in
     interlinear (verse-by-verse) layout: one <section> per liturgy.Section,
     versions interleaved by chapter:verse -- each verse key printed once
     (.vnum) inside a .ilverse block, followed by one .illine per version
     that carries that verse, carrying its own .version-label + escaped
     text. "pl" cannot participate (paragraph text has no verse numbers)
     and was already substituted/dropped upstream; see
     web.buildInterlinearViews. A section with nothing to interleave shows
     .Note instead. */}}
{{range .}}
<section class="reading-section" data-part="{{.PartID}}">
  <h2 class="heading">{{.Heading}}</h2>
  {{if .Subtitle}}<p class="citation">{{.Subtitle}}</p>{{end}}
  {{if .Note}}
  <p class="error">{{.Note}}</p>
  {{else}}
  <div class="display-interlinear">
    {{range .Verses}}
    <div class="ilverse">
      <span class="vnum">{{.VNum}}</span>
      {{range .Lines}}
      <div class="illine"><span class="version-label">{{.Label}}</span> <span>{{.Text}}</span></div>
      {{end}}
    </div>
    {{end}}
  </div>
  {{end}}
</section>
{{end}}