Rework template system, merge templates

The embedded portion doesn't work yet.
This commit is contained in:
Eli Ribble 2026-02-07 05:51:21 +00:00
parent eb6e54a0f7
commit 0265e9d3ec
No known key found for this signature in database
163 changed files with 11637 additions and 9183 deletions

View file

@ -13,10 +13,6 @@ import (
"github.com/rs/zerolog/log"
)
var (
oauthPromptT = buildTemplate("oauth-prompt", "authenticated")
)
type ContextOauthPrompt struct {
User User
}
@ -89,5 +85,5 @@ func oauthPrompt(w http.ResponseWriter, r *http.Request, user *models.User) {
data := ContextOauthPrompt{
User: userContent,
}
html.RenderOrError(w, oauthPromptT, data)
html.RenderOrError(w, "sync/oauth-prompt.html", data)
}