From a370efc13f0e1ea309e324639832832bc14cb6dc Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 10 Aug 2023 11:19:39 +0800 Subject: Use template context function for avatar rendering (#26385) Introduce `AvatarUtils`, no need to pass `$.Context` to every sub-template, and simplify the template helper functions. --- templates/shared/issuelist.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/shared/issuelist.tmpl') diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl index 30e19baf7c..72cf1dd6c8 100644 --- a/templates/shared/issuelist.tmpl +++ b/templates/shared/issuelist.tmpl @@ -37,7 +37,7 @@
{{range .Assignees}} - {{avatar $.Context . 20}} + {{ctx.AvatarUtils.Avatar . 20}} {{end}}
-- cgit v1.2.3