diff options
author | Lauris BH <lauris@nix.lv> | 2020-02-03 21:50:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 21:50:37 +0200 |
commit | 20c513be6e376231a33f01625f5ae747d2051241 (patch) | |
tree | e44d44973999a7acede7fc3e6a29306064b5df18 /templates | |
parent | ea50f60df231ba75c32d03118e0c8af17c325324 (diff) | |
download | gitea-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 'templates')
-rw-r--r-- | templates/repo/release/list.tmpl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 90a45b9b67..71cf697495 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -84,6 +84,7 @@ {{if .Attachments}} {{range .Attachments}} <li> + <span class="ui text right" data-tooltip="{{$.i18n.Tr "repo.release.download_count" (.DownloadCount | PrettyNumber)}}" data-position="bottom right"><i class="ui octicon octicon-info"></i></span> <a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}"> <strong><span class="ui image octicon octicon-package" title='{{.Name}}'></span> {{.Name}}</strong> <span class="ui text grey right">{{.Size | FileSize}}</span> |