Fix template bug (#27581)

Regression from #27414
pull/27584/head^2
Lunny Xiao 1 year ago committed by GitHub
parent 73b63d9311
commit fb74fe99d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      templates/user/dashboard/feeds.tmpl

@ -83,6 +83,7 @@
{{if .GetOpType.InActions "commit_repo" "mirror_sync_push"}}
{{$push := ActionContent2Commits .}}
{{$repoLink := (.GetRepoLink ctx)}}
{{$repo := .Repo}}
<div class="gt-df gt-fc gt-gap-2">
{{range $push.Commits}}
{{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}}
@ -90,7 +91,7 @@
<img class="ui avatar" src="{{$push.AvatarLink $.Context .AuthorEmail}}" title="{{.AuthorName}}" width="16" height="16">
<a class="ui sha label" href="{{$commitLink}}">{{ShortSha .Sha1}}</a>
<span class="text truncate">
{{RenderCommitMessage $.Context .Message $repoLink ($.ComposeMetas ctx)}}
{{RenderCommitMessage $.Context .Message $repoLink ($repo.ComposeMetas ctx)}}
</span>
</div>
{{end}}

Loading…
Cancel
Save