Skip to content

Commit da41820

Browse files
authored
fix commits_list_small.tmpl (#18641)
Signed-off-by: a1012112796 <[email protected]>
1 parent 37ead26 commit da41820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/commits_list_small.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747
</span>
4848

4949
{{ $commitLink:= printf "%s/commit/%s" $.comment.Issue.PullRequest.BaseRepo.Link (PathEscape .ID.String) }}
50-
<span class="mono commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject $.Context .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}}</span>
50+
<span class="mono commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject $.root.Context .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}}</span>
5151
{{if IsMultilineCommitMessage .Message}}
5252
<button class="ui button ellipsis-button" aria-expanded="false">...</button>
5353
{{end}}
5454
{{if IsMultilineCommitMessage .Message}}
55-
<pre class="commit-body" style="display: none;">{{RenderCommitBody $.Context .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}}</pre>
55+
<pre class="commit-body" style="display: none;">{{RenderCommitBody $.root.Context .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}}</pre>
5656
{{end}}
5757
</div>
5858
{{end}}

0 commit comments

Comments
 (0)