Files
lenz-web/views/routes/brief/body.gohtml
Simon Martens 9563145aeb Lots of stuff
2025-06-24 18:20:06 +02:00

48 lines
1.2 KiB
Plaintext

{{ $model := . }}
<div class="flex flex-row w-full border-b pb-2 mb-3">
{{- template "_letterhead" .meta -}}
<div class="self-end justify-self-end grow-0 print:hidden">
{{ if .prev }}
<a href="/brief/{{ .prev.Letter }}" class="stdlink"
><i class="ri-arrow-left-long-line"></i
></a>
{{ end }}
<span class="mx-1 font-variant-small-caps">LKB</span>
{{ if .next }}
<a href="/brief/{{ .next.Letter }}" class="stdlink"
><i class="ri-arrow-right-long-line"></i
></a>
{{ end }}
</div>
<div class="self-end justify-self-end grow-0 print:hidden ml-4">
<a
href="?print=true"
class="text-gray-700 hover:text-slate-900 cursor-pointer"
hx-boost="false"
target="_blank">
<i class="ri-printer-line"></i>
</a>
</div>
</div>
<div class="text flex flex-row print:flex-col">
{{- 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>