diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-08-10 05:19:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-10 05:19:39 +0200 |
commit | a370efc13f0e1ea309e324639832832bc14cb6dc (patch) | |
tree | 3c408cf225a4ffcc49f257fabf162831c92e23bf /templates/shared/issuelist.tmpl | |
parent | Add transaction when creating pull request created dirty data (#26259) (diff) | |
download | forgejo-a370efc13f0e1ea309e324639832832bc14cb6dc.tar.xz forgejo-a370efc13f0e1ea309e324639832832bc14cb6dc.zip |
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.
Diffstat (limited to 'templates/shared/issuelist.tmpl')
-rw-r--r-- | templates/shared/issuelist.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <div class="text grey"> {{range .Assignees}} <a class="ui assignee gt-no-underline" href="{{.HomeLink}}" data-tooltip-content="{{.GetDisplayName}}"> - {{avatar $.Context . 20}} + {{ctx.AvatarUtils.Avatar . 20}} </a> {{end}} </div> |