summaryrefslogtreecommitdiffstats
path: root/templates/repo/view_list.tmpl
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-11-12 17:35:55 -0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-13 09:35:55 +0800
commit5481be0ac5e137a1127ca37975a6d319bf0ad940 (patch)
tree44e39f02682181b7cf4d593f3b5d18e2b4d857a8 /templates/repo/view_list.tmpl
parent47f40ccd5ee1b54019cec6b5d3bce6b8075a1384 (diff)
downloadgitea-5481be0ac5e137a1127ca37975a6d319bf0ad940.tar.gz
gitea-5481be0ac5e137a1127ca37975a6d319bf0ad940.zip
Fix issue link rendering in commit messages (#2897)
* Fix issue link rendering in commit messages * Update page.tmpl * No links for parens * remove comment
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r--templates/repo/view_list.tmpl6
1 files changed, 2 insertions, 4 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index 7be2183fa8..a2bb72c227 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -27,7 +27,7 @@
</div>
{{end}}
</a>
- <span class="grey has-emoji">{{RenderCommitMessage false .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas}}
+ <span class="grey has-emoji">{{RenderCommitMessage .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas}}
{{template "repo/commit_status" .LatestCommitStatus}}</span>
</th>
<th class="nine wide">
@@ -75,9 +75,7 @@
</td>
{{end}}
<td class="message collapsing has-emoji">
- <a rel="nofollow" href="{{$.RepoLink}}/commit/{{$commit.ID}}">
- {{RenderCommitMessage false $commit.Summary $.RepoLink $.Repository.ComposeMetas}}
- </a>
+ {{RenderCommitMessageLink $commit.Summary $.RepoLink (print $.RepoLink "/commit/" $commit.ID) $.Repository.ComposeMetas}}
</td>
<td class="text grey right age">{{TimeSince $commit.Committer.When $.Lang}}</td>
</tr>