1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

Un-lambda base.FileSize (#7556)

No need to wrap this.
This commit is contained in:
Christian Muehlhaeuser 2019-07-22 10:58:26 +02:00 committed by Lauris BH
parent 12a098920c
commit 9a965035f0

View File

@ -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 ""