feat: add expiration time in the note web view
All checks were successful
/ pre-commit (push) Successful in 1m7s

Fixes #35.

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2025-09-22 17:11:54 +02:00
commit 634326190c
Signed by: jriou
GPG key ID: 9A099EDA51316854
3 changed files with 17 additions and 1 deletions

View file

@ -106,6 +106,7 @@ func (s *Server) Start() error {
// Web pages
funcs := template.FuncMap{
"HumanDuration": internal.HumanDuration,
"TimeDiff": internal.TimeDiff,
"lower": strings.ToLower,
"string": func(b []byte) string { return string(b) },
}