diff options
Diffstat (limited to 'templates/ef/ordo.html')
| -rw-r--r-- | templates/ef/ordo.html | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/templates/ef/ordo.html b/templates/ef/ordo.html index e516816..3353000 100644 --- a/templates/ef/ordo.html +++ b/templates/ef/ordo.html @@ -1,12 +1,15 @@ <!-- colitur ordo booklet -- HTML. flavour: html --> -<!-- Day label falls back to the slug when the day carries no Latin name - (most temporal days, and most sanctoral entries, which are Latin-less - in the shipped data) -- see ordo.tex's own comment for why the fallback - is written as a name-section wrapping a plain var and its inverse, - rather than a single dotted lookup and its inverse. --> +<!-- The observed day's own display name is a PLAIN resolved string + (View.of_days, Task 5), not a lang-keyed object -- there is no + dotted-la-with-slug-fallback idiom to write here any more; a + commemoration entry carries its own resolved display name too, so a + commemoration line no longer prints the bare slug. Every fixed label + (Ordo, Epistle, Gospel, Commemoration) comes from the view's term + vocabulary rather than being written into this file, so a translated + booklet needs no template edit. --> <!doctype html> <html lang="la"><head><meta charset="utf-8"> -<title>Ordo {{year}}</title> +<title>{{term.ordo}} {{year}}</title> <style> body{font-family:serif;max-width:40em;margin:2em auto;line-height:1.4} .day{margin:.6em 0;padding-left:2.5em;text-indent:-2.5em} @@ -17,12 +20,12 @@ .rose{border-left:4px solid #e7a} .black{border-left:4px solid #000} @media print{body{margin:0}} </style></head><body> -<h1>Ordo {{year}} · {{rite}}</h1> -{{#months}}<h2>{{name.la}}</h2> +<h1>{{term.ordo}} {{year}} · {{rite}}</h1> +{{#months}}<h2>{{name}}</h2> {{#days}}<div class="day {{colour}}"> - <span class="dom">{{dom}}</span>{{#name}}{{la}}{{^la}}{{slug}}{{/la}}{{/name}} - <div class="meta">{{rank}} · {{colour}}{{#first}} · Ep. {{first}}{{/first}}{{#gospel}} · Ev. {{gospel}}{{/gospel}}</div> - {{#comms}}<div class="meta">Com. {{slug}}</div>{{/comms}} + <span class="dom">{{dom}}</span>{{name}} + <div class="meta">{{rank}} · {{colour}}{{#first}} · {{term.epistle}} {{first}}{{/first}}{{#gospel}} · {{term.gospel}} {{gospel}}{{/gospel}}</div> + {{#comms}}<div class="meta">{{term.commemoration}} {{name}}</div>{{/comms}} </div> {{/days}}{{/months}} </body></html> |
