diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-08-24 03:39:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 21:39:00 -0400 |
commit | 1939e873482b57170898525b72f4c27a7bad09df (patch) | |
tree | 025ad66ab1d8b78d4780574572a6aa02ef415143 /templates/package | |
parent | 7d1765e940e9aa86f917c709b5741066fa05a188 (diff) | |
download | gitea-1939e873482b57170898525b72f4c27a7bad09df.tar.gz gitea-1939e873482b57170898525b72f4c27a7bad09df.zip |
Enhance package date display (#20928)
* Use better date display.
* Update templates/package/view.tmpl
Diffstat (limited to 'templates/package')
-rw-r--r-- | templates/package/view.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/package/view.tmpl b/templates/package/view.tmpl index 0116da53b3..95d668a3fd 100644 --- a/templates/package/view.tmpl +++ b/templates/package/view.tmpl @@ -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" .}} |