Slight page refactoring, text pages, tooltips

This commit is contained in:
Simon Martens
2025-02-22 00:11:25 +01:00
parent 0d79239fd8
commit 29576ec7a0
47 changed files with 2079 additions and 295 deletions

View File

@@ -13,7 +13,7 @@ const URL_ERROR_500 = "/errors/500/"
func init() {
rp := &ErrorPage{
Page: pagemodels.Page{
StaticPage: pagemodels.StaticPage{
Name: URL_ERROR_404,
},
}
@@ -21,7 +21,7 @@ func init() {
}
type ErrorPage struct {
pagemodels.Page
pagemodels.StaticPage
}
func (p *ErrorPage) Setup(router *router.Router[*core.RequestEvent], app core.App, engine *templating.Engine) error {
@@ -33,7 +33,3 @@ func (p *ErrorPage) Setup(router *router.Router[*core.RequestEvent], app core.Ap
})
return nil
}
func Error404(e *core.RequestEvent, engine *templating.Engine, err error, data map[string]interface{}) error {
return engine.Response404(e, err, data)
}