mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-30 04:15:21 +00:00
parent
12a098920c
commit
9a965035f0
|
@ -93,9 +93,7 @@ func NewFuncMap() []template.FuncMap {
|
||||||
"DateFmtShort": func(t time.Time) string {
|
"DateFmtShort": func(t time.Time) string {
|
||||||
return t.Format("Jan 02, 2006")
|
return t.Format("Jan 02, 2006")
|
||||||
},
|
},
|
||||||
"SizeFmt": func(s int64) string {
|
"SizeFmt": base.FileSize,
|
||||||
return base.FileSize(s)
|
|
||||||
},
|
|
||||||
"List": List,
|
"List": List,
|
||||||
"SubStr": func(str string, start, length int) string {
|
"SubStr": func(str string, start, length int) string {
|
||||||
if len(str) == 0 {
|
if len(str) == 0 {
|
||||||
|
|
Loading…
Reference in a new issue