Skip to content

Commit 6d2f0e5

Browse files
techknowlogicklafriks
authored andcommitted
Don't post process commit summary in templates (#6868)
Backport #6842 credit to @mrsdizzie
1 parent 476ca67 commit 6d2f0e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/repo/commits_table.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</a>
6969
</td>
7070
<td class="message collapsing">
71-
<span class="has-emoji{{if gt .ParentCount 1}} grey text{{end}}">{{RenderCommitMessage .Summary $.RepoLink $.Repository.ComposeMetas}}</span>
71+
<span class="has-emoji{{if gt .ParentCount 1}} grey text{{end}}">{{.Summary}}</span>
7272
{{if IsMultilineCommitMessage .Message}}
7373
<button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button>
7474
<pre class="commit-body" style="display: none;">{{RenderCommitBody .Message $.RepoLink $.Repository.ComposeMetas}}</pre>

templates/repo/view_list.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</div>
2828
{{end}}
2929
</a>
30-
<span class="grey has-emoji">{{RenderCommitMessage .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas}}
30+
<span class="grey has-emoji">{{.LatestCommit.Summary}}
3131
{{if IsMultilineCommitMessage .LatestCommit.Message}}
3232
<button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button>
3333
<pre class="commit-body" style="display: none;">{{RenderCommitBody .LatestCommit.Message $.RepoLink $.Repository.ComposeMetas}}</pre>
@@ -79,7 +79,7 @@
7979
</td>
8080
{{end}}
8181
<td class="message collapsing has-emoji">
82-
{{RenderCommitMessageLink $commit.Summary $.RepoLink (print $.RepoLink "/commit/" $commit.ID) $.Repository.ComposeMetas}}
82+
<a href="{{$.RepoLink}}/commit/{{$commit.ID}}">{{$commit.Summary}}</a>
8383
</td>
8484
<td class="text grey right age">{{TimeSince $commit.Committer.When $.Lang}}</td>
8585
</tr>

0 commit comments

Comments
 (0)