diff options
Diffstat (limited to 'modules/base/template.go')
-rw-r--r-- | modules/base/template.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/base/template.go b/modules/base/template.go index 0d682545..7f575388 100644 --- a/modules/base/template.go +++ b/modules/base/template.go @@ -131,12 +131,13 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{ "LoadTimes": func(startTime time.Time) string { return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms" }, - "AvatarLink": AvatarLink, - "Safe": Safe, - "Str2html": Str2html, - "TimeSince": TimeSince, - "FileSize": FileSize, - "Subtract": Subtract, + "AvatarLink": AvatarLink, + "Safe": Safe, + "Str2html": Str2html, + "TimeSince": TimeSince, + "RawTimeSince": RawTimeSince, + "FileSize": FileSize, + "Subtract": Subtract, "Add": func(a, b int) int { return a + b }, |