Skip to content

Commit

Permalink
Fix template bug (go-gitea#27581)
Browse files Browse the repository at this point in the history
Regression from go-gitea#27414
  • Loading branch information
lunny authored Oct 11, 2023
1 parent 73b63d9 commit fb74fe9
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 $repoLink ($.ComposeMetas ctx)}}
{{RenderCommitMessage $.Context .Message $repoLink ($repo.ComposeMetas ctx)}}
</span>
</div>
{{end}}
Expand Down

0 comments on commit fb74fe9

Please sign in to comment.