|
21 | 21 | <div class="tw-pt-4 tw-pl-4 title"> |
22 | 22 | <h4> |
23 | 23 | <span class="message-wrapper"> |
24 | | - {{if $.PageIsWiki}} |
25 | | - <span class="commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{.Summary | ctx.RenderUtils.RenderEmoji}}</span> |
26 | | - {{else}} |
27 | | - {{$commitLink:= printf "%s/commit/%s" $commitRepoLink (PathEscape .ID.String)}} |
28 | | - <span class="commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{ctx.RenderUtils.RenderCommitMessageLinkSubject .Message $commitLink ($.Repository.ComposeMetas ctx)}}</span> |
29 | | - {{end}} |
| 24 | + {{if $.PageIsWiki}} |
| 25 | + <span class="commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{.Summary | ctx.RenderUtils.RenderEmoji}}</span> |
| 26 | + {{else}} |
| 27 | + {{$commitLink:= printf "%s/commit/%s" $commitRepoLink (PathEscape .ID.String)}} |
| 28 | + <span class="commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{ctx.RenderUtils.RenderCommitMessageLinkSubject .Message $commitLink ($.Repository.ComposeCommentMetas ctx)}}</span> |
| 29 | + {{end}} |
30 | 30 | </span> |
31 | 31 | {{if IsMultilineCommitMessage .Message}} |
32 | 32 | <button class="ui button ellipsis-button" aria-expanded="false" data-global-click="onRepoEllipsisButtonClick">...</button> |
33 | 33 | {{end}} |
34 | 34 | {{if IsMultilineCommitMessage .Message}} |
35 | | - <pre class="commit-body tw-hidden">{{ctx.RenderUtils.RenderCommitBody .Message ($.Repository.ComposeMetas ctx)}}</pre> |
| 35 | + <pre class="commit-body tw-hidden">{{ctx.RenderUtils.RenderCommitBody .Message ($.Repository.ComposeCommentMetas ctx)}}</pre> |
36 | 36 | {{end}} |
37 | 37 | {{if $.CommitsTagsMap}} |
38 | 38 | {{range (index $.CommitsTagsMap .ID.String)}} |
|
90 | 90 | {{/* at the moment, wiki doesn't support these "view" links like "view at history point" */}} |
91 | 91 | {{if not $.PageIsWiki}} |
92 | 92 | {{/* view single file diff */}} |
93 | | - {{if $.FileName}} |
| 93 | + {{if $.FileTreePath}} |
94 | 94 | <a class="btn interact-bg tw-p-2 view-single-diff" data-tooltip-content="{{ctx.Locale.Tr "repo.commits.view_file_diff"}}" |
95 | | - href="{{$commitRepoLink}}/commit/{{.ID.String}}?files={{$.FileName}}" |
| 95 | + href="{{$commitRepoLink}}/commit/{{.ID.String}}?files={{$.FileTreePath}}" |
96 | 96 | >{{svg "octicon-file-diff"}}</a> |
97 | 97 | {{end}} |
98 | 98 |
|
99 | 99 | {{/* view at history point */}} |
100 | 100 | {{$viewCommitLink := printf "%s/src/commit/%s" $commitRepoLink (PathEscape .ID.String)}} |
101 | | - {{if $.FileName}}{{$viewCommitLink = printf "%s/%s" $viewCommitLink (PathEscapeSegments $.FileName)}}{{end}} |
| 101 | + {{if $.FileTreePath}}{{$viewCommitLink = printf "%s/%s" $viewCommitLink (PathEscapeSegments $.FileTreePath)}}{{end}} |
102 | 102 | <a class="btn interact-bg tw-p-2 view-commit-path" data-tooltip-content="{{ctx.Locale.Tr "repo.commits.view_path"}}" href="{{$viewCommitLink}}">{{svg "octicon-file-code"}}</a> |
103 | 103 | {{end}} |
104 | 104 | </div> |
|
0 commit comments