Skip to content

Commit b9dfd3e

Browse files
committed
Merge branch main into refactor-commit-list-page-group-by-date
1 parent 0581b27 commit b9dfd3e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

templates/repo/commits_list_group_by_date.tmpl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121
<div class="tw-pt-4 tw-pl-4 title">
2222
<h4>
2323
<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}}
3030
</span>
3131
{{if IsMultilineCommitMessage .Message}}
3232
<button class="ui button ellipsis-button" aria-expanded="false" data-global-click="onRepoEllipsisButtonClick">...</button>
3333
{{end}}
3434
{{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>
3636
{{end}}
3737
{{if $.CommitsTagsMap}}
3838
{{range (index $.CommitsTagsMap .ID.String)}}
@@ -90,15 +90,15 @@
9090
{{/* at the moment, wiki doesn't support these "view" links like "view at history point" */}}
9191
{{if not $.PageIsWiki}}
9292
{{/* view single file diff */}}
93-
{{if $.FileName}}
93+
{{if $.FileTreePath}}
9494
<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}}"
9696
>{{svg "octicon-file-diff"}}</a>
9797
{{end}}
9898

9999
{{/* view at history point */}}
100100
{{$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}}
102102
<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>
103103
{{end}}
104104
</div>

0 commit comments

Comments
 (0)