Skip to content

Commit 6b65c41

Browse files
authored
Fix missing ctx for GetRepoLink in dashboard (#27372)
As title Fix #27369 Regression of #27265
1 parent 4ab597f commit 6b65c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/user/dashboard/feeds.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
{{ctx.Locale.Tr "action.comment_pull" ((printf "%s/pulls/%s" (.GetRepoLink ctx) $index) |Escape) $index ((.ShortRepoPath ctx)|Escape) | Str2html}}
7373
{{else if .GetOpType.InActions "publish_release"}}
7474
{{$linkText := .Content | RenderEmoji $.Context}}
75-
{{ctx.Locale.Tr "action.publish_release" ((.GetRepoLink ctx)|Escape) ((printf "%s/releases/tag/%s" .GetRepoLink .GetTag)|Escape) ((.ShortRepoPath ctx)|Escape) $linkText | Str2html}}
75+
{{ctx.Locale.Tr "action.publish_release" ((.GetRepoLink ctx)|Escape) ((printf "%s/releases/tag/%s" (.GetRepoLink ctx) .GetTag)|Escape) ((.ShortRepoPath ctx)|Escape) $linkText | Str2html}}
7676
{{else if .GetOpType.InActions "review_dismissed"}}
7777
{{$index := index .GetIssueInfos 0}}
7878
{{$reviewer := index .GetIssueInfos 1}}

0 commit comments

Comments
 (0)