summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-03-28 18:00:07 -0400
committerGitHub <noreply@github.com>2023-03-28 18:00:07 -0400
commitd977e7ec105823106b7470cf153d45dc244890cc (patch)
tree0da9296e8c121b0b79937e06dc3d83159cd69e33 /templates
parentb73d1ac1eb7d5c985749dc721bbea7ebd14f9c83 (diff)
downloadgitea-d977e7ec105823106b7470cf153d45dc244890cc.tar.gz
gitea-d977e7ec105823106b7470cf153d45dc244890cc.zip
Add creation time in tag list page (#23693) (#23773)
Backport #23693 by @balki Fixes #21699 Co-authored-by: Balki <189196+balki@users.noreply.github.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/release/list.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl
index 66147f8161..0f0535f75a 100644
--- a/templates/repo/release/list.tmpl
+++ b/templates/repo/release/list.tmpl
@@ -39,6 +39,9 @@
</h3>
<div class="download gt-df gt-ac">
{{if $.Permission.CanRead $.UnitTypeCode}}
+ {{if .CreatedUnix}}
+ <span class="gt-mr-3">{{svg "octicon-clock" 16 "gt-mr-2"}}{{TimeSinceUnix .CreatedUnix $.locale}}</span>
+ {{end}}
<a class="gt-mr-3 gt-mono muted" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "gt-mr-2"}}{{ShortSha .Sha1}}</a>
{{if not $.DisableDownloadSourceArchives}}
<a class="archive-link gt-mr-3 muted" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow">{{svg "octicon-file-zip" 16 "gt-mr-2"}}ZIP</a>