forked from jriou/coller
feat: add expiration time in the note web view
Fixes #35. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
2c3ca08dbf
commit
634326190c
3 changed files with 17 additions and 1 deletions
|
@ -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) },
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue