From 8103cd25d079d3e57d3380e60607d13c783abf6d Mon Sep 17 00:00:00 2001 From: "j. mccann" Date: Tue, 3 Dec 2019 11:28:20 -0500 Subject: [PATCH] Don't link wiki revision to commit In #7907 a change was made to use the same template for repo and wiki commit lists. However, there is no code or logic for showing the diff of a wiki commit so it just produces broken links like: http://localhost:3000/mrsdizzie/%!s(%3Cnil%3E)/commit/5e72eeb00896d3853ab22a01950a50119b249567 This just removes the link for now until that feature is implemented --- templates/repo/commits_list.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index dee9dab2b53bb..010c3b227a681 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -65,8 +65,12 @@ + {{if $.PageIsWiki}} + {{.Summary}} + {{else }} {{ $commitLink:= printf "%s/%s/%s/commit/%s" AppSubUrl $.Username $.Reponame .ID }} {{RenderCommitMessageLinkSubject .Message $.RepoLink $commitLink $.Repository.ComposeMetas}} + {{end}} {{if IsMultilineCommitMessage .Message}}