Skip to content

Commit bdbdd66

Browse files
mrsdizzietechknowlogick
authored andcommitted
Don't link wiki revision to commit (#9244)
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
1 parent 1823697 commit bdbdd66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/repo/commits_list.tmpl

+4
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@
6565
</td>
6666
<td class="message">
6767
<span class="message-wrapper">
68+
{{if $.PageIsWiki}}
69+
<span class="commit-summary has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{.Summary}}</span>
70+
{{else }}
6871
{{ $commitLink:= printf "%s/%s/%s/commit/%s" AppSubUrl $.Username $.Reponame .ID }}
6972
<span class="commit-summary has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message $.RepoLink $commitLink $.Repository.ComposeMetas}}</span>
73+
{{end}}
7074
</span>
7175
{{if IsMultilineCommitMessage .Message}}
7276
<button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button>

0 commit comments

Comments
 (0)