Render issue references in file table (#17897)

Fixes #17887
This commit is contained in:
silverwind 2021-12-03 08:15:53 -08:00 committed by GitHub
parent 5f22e2dfb2
commit 4f81c7dffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,8 @@
<td class="message nine wide">
<span class="truncate">
{{if $commit}}
<a href="{{$.RepoLink}}/commit/{{PathEscape $commit.ID.String}}" title="{{$commit.Summary}}">{{$commit.Summary | RenderEmoji}}</a>
{{$commitLink := printf "%s/commit/%s" $.RepoLink (PathEscape $commit.ID.String)}}
{{RenderCommitMessageLinkSubject $commit.Message $.RepoLink $commitLink $.Repository.ComposeMetas}}
{{else}}
<div class="ui active tiny slow centered inline">…</div>
{{end}}