aboutsummaryrefslogtreecommitdiff
path: root/templates/ef/grid.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/ef/grid.html')
-rw-r--r--templates/ef/grid.html18
1 files changed, 16 insertions, 2 deletions
diff --git a/templates/ef/grid.html b/templates/ef/grid.html
index b6ed229..e313f9d 100644
--- a/templates/ef/grid.html
+++ b/templates/ef/grid.html
@@ -5,7 +5,20 @@
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. -->
+ 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>
@@ -17,6 +30,7 @@
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}}
@@ -27,7 +41,7 @@
<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}}</td>{{/in_month}}{{^in_month}}<td class="pad"></td>{{/in_month}}{{/days}}
+ {{#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>