mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-29 14:54:06 +00:00
refactor: drop two unmaintained dependencies, rename the byte size helpers (#39083)
This commit is contained in:
@@ -56,10 +56,10 @@ func newFuncMapWebPage() template.FuncMap {
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
// time / number / format
|
||||
"ShortSha": base.ShortSha,
|
||||
"FileSize": base.FileSize,
|
||||
"CountFmt": countFmt,
|
||||
"Sec2Hour": util.SecToHours,
|
||||
"ShortSha": base.ShortSha,
|
||||
"FormatByteSize": util.FormatByteSize,
|
||||
"CountFmt": countFmt,
|
||||
"Sec2Hour": util.SecToHours,
|
||||
|
||||
"TimeEstimateString": timeEstimateString,
|
||||
|
||||
|
||||
@@ -87,8 +87,8 @@ func mailBodyFuncMap() template.FuncMap {
|
||||
"JsonUtils": NewJsonUtils,
|
||||
|
||||
// time / number / format
|
||||
"ShortSha": base.ShortSha,
|
||||
"FileSize": base.FileSize,
|
||||
"ShortSha": base.ShortSha,
|
||||
"FormatByteSize": util.FormatByteSize,
|
||||
|
||||
// setting
|
||||
"AppName": func() string {
|
||||
|
||||
Reference in New Issue
Block a user