feat(web): link the API documentation in the footer and where tokens are created
ci / build (pull_request) Successful in 3m46s
ci / image (pull_request) Successful in 4m39s
ci / test (pull_request) Successful in 8m25s
ci / lint (pull_request) Successful in 9m12s

The footer now always shows, with the API link next to the legal
documents. Creating a token explains how to send it, before and right
after creation.

Refs #84

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 13:23:18 +01:00
1 parent ef49667082
commit e6be8f15d3
9 files changed
+433 -342

No files matched your search

+9 -8
View File
@@ -13,14 +13,15 @@ templ legalLink(l LegalLink) {
}
}
templ legalFooter(links []LegalLink) {
if len(links) > 0 {
<footer class="mx-auto flex w-full max-w-5xl justify-end gap-4 px-6 py-6 font-mono text-xs text-muted">
for _, l := range links {
@legalLink(l)
}
</footer>
}
// siteFooter links the API documentation and the platform's legal
// documents.
templ siteFooter(links []LegalLink) {
<footer class="mx-auto flex w-full max-w-5xl justify-end gap-4 px-6 py-6 font-mono text-xs text-muted">
<a href="/api/docs" class="hover:text-ink">{ i18n.T(ctx, "apidocs.footer") }</a>
for _, l := range links {
@legalLink(l)
}
</footer>
}
templ legalBody(html string) {