blob: b6ed22909d55aa37ec5c8122c974f0fd0adeb4bf (
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
|
<!-- 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. -->
<!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}
.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}} · {{rite}}</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}}</td>{{/in_month}}{{^in_month}}<td class="pad"></td>{{/in_month}}{{/days}}
</tr>
{{/weeks}}
</table>
{{/months}}
</body></html>
|