Skip to content

Commit fb74fe9

Browse files
authored
Fix template bug (#27581)
Regression from #27414
1 parent 73b63d9 commit fb74fe9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/user/dashboard/feeds.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@
8383
{{if .GetOpType.InActions "commit_repo" "mirror_sync_push"}}
8484
{{$push := ActionContent2Commits .}}
8585
{{$repoLink := (.GetRepoLink ctx)}}
86+
{{$repo := .Repo}}
8687
<div class="gt-df gt-fc gt-gap-2">
8788
{{range $push.Commits}}
8889
{{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}}
8990
<div class="flex-text-block">
9091
<img class="ui avatar" src="{{$push.AvatarLink $.Context .AuthorEmail}}" title="{{.AuthorName}}" width="16" height="16">
9192
<a class="ui sha label" href="{{$commitLink}}">{{ShortSha .Sha1}}</a>
9293
<span class="text truncate">
93-
{{RenderCommitMessage $.Context .Message $repoLink ($.ComposeMetas ctx)}}
94+
{{RenderCommitMessage $.Context .Message $repoLink ($repo.ComposeMetas ctx)}}
9495
</span>
9596
</div>
9697
{{end}}

0 commit comments

Comments
 (0)