Skip to content

Commit

Permalink
Fix template bug (#27581) (#29446)
Browse files Browse the repository at this point in the history
Fix #29152
Backport #27581
  • Loading branch information
lunny authored Feb 27, 2024
1 parent 06dc261 commit dc48eb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/user/dashboard/feeds.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@
{{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}}
<div class="flex-text-block">
<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 $.ComposeMetas}}
{{RenderCommitMessage $.Context .Message $repo.ComposeMetas}}
</span>
</div>
{{end}}
Expand Down

0 comments on commit dc48eb0

Please sign in to comment.