mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
Use a simple format for the big number on ui (#12822)
* Use a simple format for the big number on ui Signed-off-by: a1012112796 <1012112796@qq.com> * make fmt * Apply review suggestion @silverwind * Change name 2 * make fmt Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
d8b5235ded
commit
a9decf0dac
5 changed files with 48 additions and 15 deletions
|
@ -120,8 +120,9 @@ func NewFuncMap() []template.FuncMap {
|
|||
"DateFmtShort": func(t time.Time) string {
|
||||
return t.Format("Jan 02, 2006")
|
||||
},
|
||||
"SizeFmt": base.FileSize,
|
||||
"List": List,
|
||||
"SizeFmt": base.FileSize,
|
||||
"CountFmt": base.FormatNumberSI,
|
||||
"List": List,
|
||||
"SubStr": func(str string, start, length int) string {
|
||||
if len(str) == 0 {
|
||||
return ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue