summaryrefslogtreecommitdiffstats
path: root/modules/templates/helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/templates/helper.go')
-rw-r--r--modules/templates/helper.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 5a3969c098..ceb4501c5b 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -93,10 +93,8 @@ func NewFuncMap() []template.FuncMap {
"DateFmtShort": func(t time.Time) string {
return t.Format("Jan 02, 2006")
},
- "SizeFmt": func(s int64) string {
- return base.FileSize(s)
- },
- "List": List,
+ "SizeFmt": base.FileSize,
+ "List": List,
"SubStr": func(str string, start, length int) string {
if len(str) == 0 {
return ""