aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-02-27 19:11:38 +0800
committerGitHub <noreply@github.com>2024-02-27 11:11:38 +0000
commitdc48eb070b2e4143739b7ab22bb9e172af90106d (patch)
treec8380f9f937a2bdcd6bd971445e7c848d12278ca /templates
parent06dc26167aa1580ee645f4c90b5475cdaa78cd00 (diff)
downloadgitea-dc48eb070b2e4143739b7ab22bb9e172af90106d.tar.gz
gitea-dc48eb070b2e4143739b7ab22bb9e172af90106d.zip
Fix template bug (#27581) (#29446)
Fix #29152 Backport #27581
Diffstat (limited to 'templates')
-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 a1ac3d8848..da796fc275 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 $.ComposeMetas}}
+ {{RenderCommitMessage $.Context .Message $repo.ComposeMetas}}
</span>
</div>
{{end}}