From 85e8c837b8472ec20e657d2a7ebc6c78c04bffae Mon Sep 17 00:00:00 2001
From: Balki <189196+balki@users.noreply.github.com>
Date: Tue, 28 Mar 2023 16:51:13 +0000
Subject: [PATCH] Add creation time in tag list page (#23693)

Fixes #21699
---
 templates/repo/release/list.tmpl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl
index 5e5716fa57..3dc3deb395 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>