From fb18f02efd943379b9fc2faf3ffc9315a17007da Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Fri, 24 Mar 2023 17:14:15 -0400 Subject: [PATCH 1/2] Add creation time in tag list page 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 8b320a956c183..2dcf0a547b6e6 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -39,6 +39,9 @@
{{if $.Permission.CanRead $.UnitTypeCode}} + {{if .CreatedUnix}} + {{svg "octicon-clock" 16 "gt-mr-2"}}{{TimeSinceUnix .CreatedUnix $.locale}} + {{end}} {{svg "octicon-git-commit" 16 "gt-mr-2"}}{{ShortSha .Sha1}} {{if not $.DisableDownloadSourceArchives}} {{svg "octicon-file-zip" 16 "gt-mr-2"}}ZIP From 78324c154f35349c8218484f680efa4f658ffa4b Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 27 Mar 2023 18:33:45 +0200 Subject: [PATCH 2/2] remove unnecessary classes --- templates/repo/release/list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 2dcf0a547b6e6..734fb9b524143 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -40,7 +40,7 @@
{{if $.Permission.CanRead $.UnitTypeCode}} {{if .CreatedUnix}} - {{svg "octicon-clock" 16 "gt-mr-2"}}{{TimeSinceUnix .CreatedUnix $.locale}} + {{svg "octicon-clock" 16 "gt-mr-2"}}{{TimeSinceUnix .CreatedUnix $.locale}} {{end}} {{svg "octicon-git-commit" 16 "gt-mr-2"}}{{ShortSha .Sha1}} {{if not $.DisableDownloadSourceArchives}}