1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Show download count info in release list (#10124)

* Show download count info in release list

* Use go-humanize
This commit is contained in:
Lauris BH
2020-02-03 21:50:37 +02:00
committed by GitHub
parent ea50f60df2
commit 20c513be6e
23 changed files with 1207 additions and 40 deletions

View File

@@ -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>