mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 09:15:33 +00:00
Lots of stuff
This commit is contained in:
@@ -30,9 +30,18 @@
|
||||
</div>
|
||||
|
||||
<div class="text flex flex-row print:flex-col">
|
||||
{{- Safe (ParseGeneric .text.Content) -}}
|
||||
{{- Safe $model.text -}}
|
||||
</div>
|
||||
|
||||
<div class="traditions mt-12 pt-3 border-t-gray-200 border-t-1 max-w-[90ch] print:border-none">
|
||||
{{ template "_lettertrad" $model.meta -}}
|
||||
</div>
|
||||
|
||||
<script type="module">
|
||||
// WARNING: We need to wait for the fonts to settle before rendering anything
|
||||
document.fonts.ready.then(() => {
|
||||
if (window.alignSidenotes) {
|
||||
window.alignSidenotes();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
{{ else if $i -}}
|
||||
,
|
||||
{{ end }}
|
||||
{{- $person := Person $p.Reference -}}
|
||||
{{- $person.Name -}}
|
||||
{{- $person := Person $p.Reference }}
|
||||
{{ $person.Name -}}
|
||||
{{- end -}}
|
||||
</div>
|
||||
<div class="mx-3">
|
||||
@@ -57,8 +57,25 @@
|
||||
{{- if $i -}}
|
||||
,
|
||||
{{- end -}}
|
||||
{{- $person := Person $p.Reference -}}
|
||||
{{- $person.Name -}}
|
||||
{{- $person := Person $p.Reference }}
|
||||
{{ $person.Name -}}
|
||||
{{- end -}}
|
||||
{{ if and $sr.Received.Places (len $sr.Received.Places) }}
|
||||
{{- range $i, $p := $sr.Received.Places -}}
|
||||
{{- $place := Place $p.Reference }}
|
||||
{{- if and $i (eq $i (Minus (len $sr.Received.Places) 1)) -}}
|
||||
und
|
||||
{{- end -}}
|
||||
{{- if $i -}}
|
||||
,
|
||||
{{- end -}}
|
||||
{{- if eq $i 0 -}}
|
||||
({{- $place.Name -}}
|
||||
{{- else -}}
|
||||
{{ $place.Name -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
)
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- else -}}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{{- (App $trad.Reference).Name -}}
|
||||
</div>
|
||||
<div class="tradition-text text hyphens-auto font-sans">
|
||||
{{- Safe (ParseGeneric $trad.Content) -}}
|
||||
{{- Safe (ParseGeneric $model $trad.Content) -}}
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user