feat(web): link the API documentation in the footer and where tokens are created
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:
1 parent
ef49667082
commit
e6be8f15d3
9 files changed
+433
-342
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user