Rework template system, merge templates
The embedded portion doesn't work yet.
This commit is contained in:
parent
eb6e54a0f7
commit
0265e9d3ec
163 changed files with 11637 additions and 9183 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue