aboutsummaryrefslogtreecommitdiff
path: root/templates/ef/grid.html
blob: b2d4a9686a4be27ac6598825e496c352aa8acb9d (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
43
44
45
46
47
48
49
<!-- colitur wall calendar -- 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 (see
     ordo.html's own header comment for the full reasoning).
     The weekday header row comes from the view's own top-level
     weekday_headings list (name/last objects), not a hard-coded
     Dom/Lun/Mar row, so a translated calendar needs no template edit.
     Sigla: each cell also carries the day's Epistle and Gospel
     references (view fields first/gospel), joined by a middot rather
     than repeated Ep./Ev. labels, the same compact choice grid.tex and
     grid.ms make. Unlike those two, this flavour is not squeezed into a
     fixed-height box on a fixed physical page -- a td here just grows
     taller to fit whatever it holds -- so no manual line-splitting or
     size shrinking beyond a small, muted secondary line is needed; that
     is the sense in which this template can afford to use its own room
     rather than copy the paper templates' compromise. Both first and
     gospel are wrapped in their own first/gospel section so a day
     missing either -- none does in the shipped EF lectionary, but
     nothing guarantees a future rite or overlay keeps that invariant --
     prints no stray separator. -->
<!doctype html>
<html lang="la"><head><meta charset="utf-8">
<title>Calendarium {{year}}</title>
<style>
 body{font-family:sans-serif;margin:1em}
 table{border-collapse:collapse;width:100%;margin-bottom:1.5em;page-break-inside:avoid}
 caption{font-size:1.2em;font-weight:bold;padding:.4em}
 th{font-size:.8em;padding:.2em;border-bottom:1px solid #999}
 td{border:1px solid #ddd;vertical-align:top;height:5em;width:14.28%;padding:.2em;font-size:.75em}
 td.pad{background:#fafafa;border-color:#eee}
 .dom{font-weight:bold;display:block}
 .sigla{display:block;margin-top:.2em;color:#666;font-size:.85em}
 .white{background:#fff} .red{background:#fdd} .green{background:#dfd}
 .violet{background:#eae}  .rose{background:#fde} .black{background:#ddd}
 @media print{@page{size:landscape}body{margin:0}}
</style></head><body>
<h1>Calendarium {{year}} &middot; {{rite_name}}</h1>
{{#months}}
<table>
 <caption>{{name}}</caption>
 <tr>{{#weekday_headings}}<th>{{name}}</th>{{/weekday_headings}}</tr>
 {{#weeks}}<tr>
 {{#days}}{{#in_month}}<td class="{{colour}}"><span class="dom">{{dom}}</span>{{name}}<span class="sigla">{{#first}}{{first}}{{/first}}{{#gospel}}{{#first}} &middot; {{/first}}{{gospel}}{{/gospel}}</span></td>{{/in_month}}{{^in_month}}<td class="pad"></td>{{/in_month}}{{/days}}
 </tr>
 {{/weeks}}
</table>
{{/months}}
</body></html>