diff --git a/pkg/template/render.go b/pkg/template/render.go index a8d6b41..9cef89e 100644 --- a/pkg/template/render.go +++ b/pkg/template/render.go @@ -107,12 +107,12 @@ func mustRenderLayout(w io.Writer, user *auth.User, company *auth.Company, templ "formatDate": func(time time.Time) template.HTML { return template.HTML(`") }, + "today": func() string { + return time.Now().Format(database.ISODateFormat) + }, "tomorrow": func() string { return time.Now().AddDate(0, 0, 1).Format(database.ISODateFormat) }, - "overmorrow": func() string { - return time.Now().AddDate(0, 0, 2).Format(database.ISODateFormat) - }, "queryEscape": func(s string) string { return url.QueryEscape(s) }, diff --git a/web/templates/public/booking.gohtml b/web/templates/public/booking.gohtml index 71fa0be..1a9cebe 100644 --- a/web/templates/public/booking.gohtml +++ b/web/templates/public/booking.gohtml @@ -128,7 +128,7 @@ @@ -138,7 +138,7 @@ diff --git a/web/templates/public/campsite/type.gohtml b/web/templates/public/campsite/type.gohtml index 19fa605..6753eff 100644 --- a/web/templates/public/campsite/type.gohtml +++ b/web/templates/public/campsite/type.gohtml @@ -40,13 +40,13 @@