Skip to content

Commit

Permalink
Enhance package date display (go-gitea#20928)
Browse files Browse the repository at this point in the history
* Use better date display.

* Update templates/package/view.tmpl
  • Loading branch information
KN4CK3R authored and Sysoev, Vladimir committed Aug 28, 2022
1 parent 991b8b9 commit 190b44e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/package/view.tmpl
Expand Up @@ -39,7 +39,7 @@
{{if .HasRepositoryAccess}}
<div class="item">{{svg "octicon-repo" 16 "mr-3"}} <a href="{{.PackageDescriptor.Repository.HTMLURL}}">{{.PackageDescriptor.Repository.FullName}}</a></div>
{{end}}
<div class="item">{{svg "octicon-calendar" 16 "mr-3"}} {{.PackageDescriptor.Version.CreatedUnix.FormatDate}}</div>
<div class="item">{{svg "octicon-calendar" 16 "mr-3"}} {{TimeSinceUnix .PackageDescriptor.Version.CreatedUnix $.locale}}</div>
<div class="item">{{svg "octicon-download" 16 "mr-3"}} {{.PackageDescriptor.Version.DownloadCount}}</div>
{{template "package/metadata/composer" .}}
{{template "package/metadata/conan" .}}
Expand Down

0 comments on commit 190b44e

Please sign in to comment.