summaryrefslogtreecommitdiff
path: root/templates/ef/ordo.html
blob: 4936974be1f4ac2ff2ab35289aec671e2c741d44 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
<!-- colitur ordo booklet -- HTML. flavour: html -->
<!-- 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. -->
<!-- Defect 2: HTML has no concept of a forced page break to begin with,
     so this flavour was never one-week-per-page -- it mainly needed the
     SAME header treatment the paginated flavours gained, for a reader
     switching between them to find the same structure. Walks
     months>weeks>days now (was months>days flat): an h2 per month
     (unchanged) and a new h3 per week, using the week's own padded,
     in-month-flagged day list rather than the month's flat, unpadded
     one -- guarded accordingly below, the same guard every paginated
     flavour's grid already needs for that field. -->
<!doctype html>
<html lang="la"><head><meta charset="utf-8">
<title>{{term.ordo}} {{year}}</title>
<style>
 body{font-family:serif;max-width:40em;margin:2em auto;line-height:1.4}
 h3{font-size:1em;border-top:1px solid #ccc;padding-top:.3em;margin-top:1.2em}
 .day{margin:.6em 0;padding-left:2.5em;text-indent:-2.5em}
 .dom{display:inline-block;width:2em;font-weight:bold}
 .meta{font-size:.85em;color:#555}
 .white{border-left:4px solid #ccc} .red{border-left:4px solid #b00}
 .green{border-left:4px solid #070} .violet{border-left:4px solid #609}
 .rose{border-left:4px solid #e7a} .black{border-left:4px solid #000}
 @media print{body{margin:0}}
</style></head><body>
<h1>{{term.ordo}} {{year}} &middot; {{rite_name}}</h1>
{{#months}}<h2>{{name}}</h2>
{{#weeks}}<h3>{{term.week}} {{num}}</h3>
{{#days}}{{#in_month}}<div class="day {{colour}}">
 <span class="dom">{{dom}}</span>{{name}}
 <div class="meta">{{rank}} &middot; {{colour}}{{#first}} &middot; {{term.epistle}} {{first}}{{/first}}{{#gospel}} &middot; {{term.gospel}} {{gospel}}{{/gospel}}</div>
 {{#comms}}<div class="meta">{{term.commemoration}} {{name}}</div>{{/comms}}
</div>
{{/in_month}}{{/days}}{{/weeks}}{{/months}}
</body></html>