summaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2020-02-03 21:50:37 +0200
committerGitHub <noreply@github.com>2020-02-03 21:50:37 +0200
commit20c513be6e376231a33f01625f5ae747d2051241 (patch)
treee44d44973999a7acede7fc3e6a29306064b5df18 /modules/templates
parentea50f60df231ba75c32d03118e0c8af17c325324 (diff)
downloadgitea-20c513be6e376231a33f01625f5ae747d2051241.tar.gz
gitea-20c513be6e376231a33f01625f5ae747d2051241.zip
Show download count info in release list (#10124)
* Show download count info in release list * Use go-humanize
Diffstat (limited to 'modules/templates')
-rw-r--r--modules/templates/helper.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 1e5fa01089..741161eb8b 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -93,6 +93,7 @@ func NewFuncMap() []template.FuncMap {
"TimeSinceUnix": timeutil.TimeSinceUnix,
"RawTimeSince": timeutil.RawTimeSince,
"FileSize": base.FileSize,
+ "PrettyNumber": base.PrettyNumber,
"Subtract": base.Subtract,
"EntryIcon": base.EntryIcon,
"MigrationIcon": MigrationIcon,