]> source.dussan.org Git - gitea.git/commitdiff
Fix missing ctx for GetRepoLink in dashboard (#27372) (#27375)
authorGiteabot <teabot@gitea.io>
Sun, 1 Oct 2023 09:54:58 +0000 (17:54 +0800)
committerGitHub <noreply@github.com>
Sun, 1 Oct 2023 09:54:58 +0000 (09:54 +0000)
Backport #27372 by @CaiCandong

As title
Fix #27369
Regression of #27265

Co-authored-by: CaiCandong <50507092+CaiCandong@users.noreply.github.com>
templates/user/dashboard/feeds.tmpl

index eb1b503a1f8f3463094a8878c3b1b44a78be8e35..f3b935ec55e6ba3f7bd04ce627b58d096afcd7d2 100644 (file)
@@ -72,7 +72,7 @@
                                                {{ctx.Locale.Tr "action.comment_pull" ((printf "%s/pulls/%s" (.GetRepoLink ctx) $index) |Escape) $index ((.ShortRepoPath ctx)|Escape) | Str2html}}
                                        {{else if .GetOpType.InActions "publish_release"}}
                                                {{$linkText := .Content | RenderEmoji $.Context}}
-                                               {{ctx.Locale.Tr "action.publish_release" ((.GetRepoLink ctx)|Escape) ((printf "%s/releases/tag/%s" .GetRepoLink .GetTag)|Escape) ((.ShortRepoPath ctx)|Escape) $linkText | Str2html}}
+                                               {{ctx.Locale.Tr "action.publish_release" ((.GetRepoLink ctx)|Escape) ((printf "%s/releases/tag/%s" (.GetRepoLink ctx) .GetTag)|Escape) ((.ShortRepoPath ctx)|Escape) $linkText | Str2html}}
                                        {{else if .GetOpType.InActions "review_dismissed"}}
                                                {{$index := index .GetIssueInfos 0}}
                                                {{$reviewer := index .GetIssueInfos 1}}