diff --git a/pkg/app/data.go b/pkg/app/data.go index 202e26e0..ea4149cc 100644 --- a/pkg/app/data.go +++ b/pkg/app/data.go @@ -52,9 +52,6 @@ func (a *App) getCurrentUser(c echo.Context) *database.User { func (a *App) defaultData(c echo.Context) map[string]interface{} { data := map[string]interface{}{} - data["version"] = a.Version - data["RegistrationDisabled"] = a.Config.RegistrationDisabled - data["SocialsDisabled"] = a.Config.SocialsDisabled a.addError(data, c) a.addNotice(data, c) diff --git a/pkg/app/templates.go b/pkg/app/templates.go index 18c47c54..ab581e50 100644 --- a/pkg/app/templates.go +++ b/pkg/app/templates.go @@ -53,6 +53,8 @@ func (a *App) viewTemplateFunctions() template.FuncMap { return template.FuncMap{ "i18n": echoFunc, + "Version": func() *Version { return &a.Version }, + "AppConfig": func() *Config { return &a.Config }, "language": func() string { return BrowserLanguage }, "humanizer": func() *humanize.Humanizer { return h }, "CurrentUser": func() *database.User { return nil }, diff --git a/views/partials/footer.html b/views/partials/footer.html index e68b3854..b31b66d5 100644 --- a/views/partials/footer.html +++ b/views/partials/footer.html @@ -1,7 +1,7 @@ {{ define "footer" }}