mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-06 01:58:29 +03:00
![wxiaoguang](/assets/img/avatar_default.png)
Introduce `AvatarUtils`, no need to pass `$.Context` to every sub-template, and simplify the template helper functions.
1 line
108 B
Go HTML Template
1 line
108 B
Go HTML Template
<a class="avatar"{{if gt .user.ID 0}} href="{{.user.HomeLink}}"{{end}}>{{ctx.AvatarUtils.Avatar .user}}</a>
|