diff options
Diffstat (limited to 'templates/ef/grid.html')
| -rw-r--r-- | templates/ef/grid.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/templates/ef/grid.html b/templates/ef/grid.html index b92e14a..b6ed229 100644 --- a/templates/ef/grid.html +++ b/templates/ef/grid.html @@ -1,11 +1,11 @@ <!-- colitur wall calendar -- 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 enclosing month - object also carries its own name.la, and a dotted lookup that misses - climbs the WHOLE path to that outer scope instead of falling back. --> +<!-- 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. --> <!doctype html> <html lang="la"><head><meta charset="utf-8"> <title>Calendarium {{year}}</title> @@ -24,10 +24,10 @@ <h1>Calendarium {{year}} · {{rite}}</h1> {{#months}} <table> - <caption>{{name.la}}</caption> - <tr><th>Dom</th><th>Lun</th><th>Mar</th><th>Mer</th><th>Iov</th><th>Ven</th><th>Sab</th></tr> + <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}}{{la}}{{^la}}{{slug}}{{/la}}{{/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}}</td>{{/in_month}}{{^in_month}}<td class="pad"></td>{{/in_month}}{{/days}} </tr> {{/weeks}} </table> |
