loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove avatarHTML from template helpers (#26598)

The HTML code is more readable and more correct (it needs `"ui avatar"`
class)

Co-authored-by: Giteabot <teabot@gitea.io>

authored by

wxiaoguang
Giteabot
and committed by
GitHub
0731abc4 8cf3b61f

+1 -2
-1
modules/templates/helper.go
··· 53 53 // ----------------------------------------------------------------- 54 54 // svg / avatar / icon 55 55 "svg": svg.RenderHTML, 56 - "avatarHTML": AvatarHTML, 57 56 "EntryIcon": base.EntryIcon, 58 57 "MigrationIcon": MigrationIcon, 59 58 "ActionIcon": ActionIcon,
+1 -1
templates/user/dashboard/feeds.tmpl
··· 86 86 {{range $push.Commits}} 87 87 {{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}} 88 88 <div class="flex-item"> 89 - {{avatarHTML ($push.AvatarLink $.Context .AuthorEmail) 16 "" .AuthorName}} 89 + <img class="ui avatar" src="{{$push.AvatarLink $.Context .AuthorEmail}}" title="{{.AuthorName}}" width="16" height="16"> 90 90 <a class="commit-id" href="{{$commitLink}}">{{ShortSha .Sha1}}</a> 91 91 <span class="text truncate light grey"> 92 92 {{RenderCommitMessage $.Context .Message $repoLink $.ComposeMetas}}