aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/dashboard
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-10-11 22:02:15 +0800
committerGitHub <noreply@github.com>2023-10-11 14:02:15 +0000
commitfb74fe99d65c05f0f711666058f4d46b46f37c08 (patch)
treed50e86ac591bc406831ed56286ad6b54257e6c9f /templates/user/dashboard
parent73b63d93117db36feda11e53099baa8995a38df0 (diff)
downloadgitea-fb74fe99d65c05f0f711666058f4d46b46f37c08.tar.gz
gitea-fb74fe99d65c05f0f711666058f4d46b46f37c08.zip
Fix template bug (#27581)
Regression from #27414
Diffstat (limited to 'templates/user/dashboard')
-rw-r--r--templates/user/dashboard/feeds.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl
index 7a2c4c7815..3a080a3505 100644
--- a/templates/user/dashboard/feeds.tmpl
+++ b/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}}