mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-20 20:07:03 +01:00
parent
12a098920c
commit
9a965035f0
1 changed files with 2 additions and 4 deletions
|
@ -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 ""
|
||||
|
|
Loading…
Reference in a new issue