1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-04 23:50:46 +02:00
Files
gitea/templates/shared/user/avatarlink.tmpl
wxiaoguang 4adee80f58 Fix team member avatar size and add tooltip (#37253)
1. Make team member avatar size=32
2. Add tooltip to the avatar
2026-04-17 16:03:55 +00:00

2 lines
241 B
Go HTML Template

<a class="avatar-with-link" {{if .tooltip}}data-tooltip-content="{{.user.Name}}{{if .user.FullName}} ({{.user.FullName}}){{end}}"{{end}} {{if gt .user.ID 0}}href="{{.user.HomeLink}}"{{end}}>{{ctx.AvatarUtils.Avatar .user (or .size 20)}}</a>