From ef72ba2485bdfa9c4926b15de85c3f6dfd760ca1 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 11 Oct 2023 18:12:39 +0800 Subject: [PATCH 1/2] Fix template bug --- templates/user/dashboard/feeds.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index 7a2c4c78151c7..c986dcfb44234 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -90,7 +90,7 @@ {{ShortSha .Sha1}} - {{RenderCommitMessage $.Context .Message $repoLink ($.ComposeMetas ctx)}} + {{RenderCommitMessage $.Context .Message $repoLink $.ComposeMetas}} {{end}} From b2254e0268ce73806667bbd37f7f587f64d5051a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 11 Oct 2023 18:45:30 +0800 Subject: [PATCH 2/2] Fix wrong var --- templates/user/dashboard/feeds.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index c986dcfb44234..3a080a3505a81 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}}
{{range $push.Commits}} {{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}} @@ -90,7 +91,7 @@ {{ShortSha .Sha1}} - {{RenderCommitMessage $.Context .Message $repoLink $.ComposeMetas}} + {{RenderCommitMessage $.Context .Message $repoLink ($repo.ComposeMetas ctx)}}
{{end}}