Skip to content

Commit d24219d

Browse files
committed
Render issue references in file table
Fixes go-gitea#17887
1 parent 5f22e2d commit d24219d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/repo/view_list.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@
8080
<td class="message nine wide">
8181
<span class="truncate">
8282
{{if $commit}}
83-
<a href="{{$.RepoLink}}/commit/{{PathEscape $commit.ID.String}}" title="{{$commit.Summary}}">{{$commit.Summary | RenderEmoji}}</a>
83+
{{$commitLink := printf "%s/commit/%s" $.RepoLink (PathEscape $commit.ID.String)}}
84+
{{RenderCommitMessageLinkSubject $commit.Message $.RepoLink $commitLink $.Repository.ComposeMetas}}
8485
{{else}}
8586
<div class="ui active tiny slow centered inline">…</div>
8687
{{end}}

0 commit comments

Comments
 (0)