1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-29 09:31:11 -05:00

Fix template bug (#27581) (#29446)

Fix #29152
Backport #27581

(cherry picked from commit dc48eb070b2e4143739b7ab22bb9e172af90106d)
This commit is contained in:
Lunny Xiao 2024-02-27 19:11:38 +08:00 committed by Earl Warren
parent 40318cf9c3
commit 40c602df9b
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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 $.ComposeMetas}}
{{RenderCommitMessage $.Context .Message $repo.ComposeMetas}}
</span>
</div>
{{end}}