]> source.dussan.org Git - gitea.git/commitdiff
Render issue references in file table (#17897)
authorsilverwind <me@silverwind.io>
Fri, 3 Dec 2021 16:15:53 +0000 (08:15 -0800)
committerGitHub <noreply@github.com>
Fri, 3 Dec 2021 16:15:53 +0000 (00:15 +0800)
Fixes #17887

templates/repo/view_list.tmpl

index da15377b2ca957b7901b243e354a52576f60fd35..d49022069475059cff6da5d2443f0718f1d53c68 100644 (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}}