summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-12-03 08:15:53 -0800
committerGitHub <noreply@github.com>2021-12-04 00:15:53 +0800
commit4f81c7dffe5ee10bfe7bf1889e1795515c759861 (patch)
treee355ec5ed13aa4bdfca3c775f2d2724e2dac73dc /templates
parent5f22e2dfb2e3481ff7204566f8b9ec6688c36a1b (diff)
downloadgitea-4f81c7dffe5ee10bfe7bf1889e1795515c759861.tar.gz
gitea-4f81c7dffe5ee10bfe7bf1889e1795515c759861.zip
Render issue references in file table (#17897)
Fixes #17887
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/view_list.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index da15377b2c..d490220694 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -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}}