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.

Add muted class to author name in repo commit list (#29989)

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/f6b3728c-ed9a-4e47-8755-89373235dff2)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/272c85e3-620d-4758-ae4d-ad90b54e142c)

If repo is a mirror, external user's name will be white, but if user is
existed, then you will see blue names and white names together:

![image](https://github.com/go-gitea/gitea/assets/18380374/747622da-56e3-4162-b391-919787a8cee4)

---------

Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit 13921569dd5f77ee7d8352d0036ff649b03e72c8)

authored by

yp05327
silverwind
and committed by
Earl Warren
18caa538 c55e30ff

+5 -4
+4 -4
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"> 16 + <td class="author tw-flex"> 17 17 {{$userName := .Author.Name}} 18 18 {{if .User}} 19 19 {{if .User.FullName}} 20 20 {{$userName = .User.FullName}} 21 21 {{end}} 22 - {{ctx.AvatarUtils.Avatar .User 28 "tw-mr-1"}}<a href="{{.User.HomeLink}}">{{$userName}}</a> 22 + {{ctx.AvatarUtils.Avatar .User 28 "tw-mr-2"}}<a class="muted author-wrapper" href="{{.User.HomeLink}}">{{$userName}}</a> 23 23 {{else}} 24 - {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "tw-mr-1"}} 25 - {{$userName}} 24 + {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "tw-mr-2"}} 25 + <span class="author-wrapper">{{$userName}}</span> 26 26 {{end}} 27 27 </td> 28 28 <td class="sha">
+1
web_src/css/repo.css
··· 2432 2432 2433 2433 .author-wrapper { 2434 2434 max-width: 180px; 2435 + align-self: center; 2435 2436 } 2436 2437 2437 2438 /* in the commit list, messages can wrap so we can use inline */