Skip to content

Commit d977e7e

Browse files
GiteaBotbalki
andauthored
Add creation time in tag list page (#23693) (#23773)
Backport #23693 by @balki Fixes #21699 Co-authored-by: Balki <[email protected]>
1 parent b73d1ac commit d977e7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/repo/release/list.tmpl

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
</h3>
4040
<div class="download gt-df gt-ac">
4141
{{if $.Permission.CanRead $.UnitTypeCode}}
42+
{{if .CreatedUnix}}
43+
<span class="gt-mr-3">{{svg "octicon-clock" 16 "gt-mr-2"}}{{TimeSinceUnix .CreatedUnix $.locale}}</span>
44+
{{end}}
4245
<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>
4346
{{if not $.DisableDownloadSourceArchives}}
4447
<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>

0 commit comments

Comments
 (0)