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.

Merge pull request '[PORT] gitea#30396: Fix author name alignment in commits table' (#3243) from gusted/forgejo-gt-30396 into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3243
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>

+12 -10
+12 -10
templates/repo/commits_list.tmpl
··· 13 13 {{$commitRepoLink := $.RepoLink}}{{if $.CommitRepoLink}}{{$commitRepoLink = $.CommitRepoLink}}{{end}} 14 14 {{range .Commits}} 15 15 <tr> 16 - <td class="author tw-flex"> 17 - {{$userName := .Author.Name}} 18 - {{if .User}} 19 - {{if and .User.FullName DefaultShowFullName}} 20 - {{$userName = .User.FullName}} 16 + <td class="author"> 17 + <div class="tw-flex"> 18 + {{$userName := .Author.Name}} 19 + {{if .User}} 20 + {{if and .User.FullName DefaultShowFullName}} 21 + {{$userName = .User.FullName}} 22 + {{end}} 23 + {{ctx.AvatarUtils.Avatar .User 28 "tw-mr-2"}}<a class="muted author-wrapper" href="{{.User.HomeLink}}">{{$userName}}</a> 24 + {{else}} 25 + {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "tw-mr-2"}} 26 + <span class="author-wrapper">{{$userName}}</span> 21 27 {{end}} 22 - {{ctx.AvatarUtils.Avatar .User 28 "tw-mr-2"}}<a class="muted author-wrapper" href="{{.User.HomeLink}}">{{$userName}}</a> 23 - {{else}} 24 - {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "tw-mr-2"}} 25 - <span class="author-wrapper">{{$userName}}</span> 26 - {{end}} 28 + </div> 27 29 </td> 28 30 <td class="sha"> 29 31 {{$class := "ui sha label"}}