forked from kevadesu/forgejo
Show download count info in release list (#10124)
* Show download count info in release list * Use go-humanize
This commit is contained in:
parent
ea50f60df2
commit
20c513be6e
23 changed files with 1207 additions and 40 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue