feat: legal notice and privacy policy as Markdown or link

Admins set the platform's documents, linked in the footer of the console
and sign-in pages and served at /legal/<kind>. Organizations set their
own for their status pages, falling back to the platform's. Documents
travel in the status page snapshot, so status page servers serve them at
/<slug>/imprint and /imprint on custom domains during API outages too.
Markdown is rendered with goldmark, which drops raw HTML and unsafe
links; stored links must be http or https.

Closes #67

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-22 10:17:39 +01:00
1 parent 4134af4aef
commit 73eb0f8bcd
26 files changed
+1278 -64

No files matched your search

+11 -1
View File
@@ -525,7 +525,17 @@ func PublicStatusPage(s agentapi.PageSnapshot, a PublicAssets) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 52, "</span> <span>uptimesebi</span></footer></main></body></html>")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 52, "</span> <span class=\"flex gap-4\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
for _, l := range PageLegalLinks(s, a.LegalBase) {
templ_7745c5c3_Err = legalLink(l).Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 53, "<span>uptimesebi</span></span></footer></main></body></html>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}