diff options
author | silverwind <me@silverwind.io> | 2020-12-09 01:12:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 01:12:15 +0100 |
commit | c05701dd7d72aea75c67fbb07df928c192474686 (patch) | |
tree | 807d295c28ad57950120e0b14596168902efde0d /templates/repo/view_list.tmpl | |
parent | 658e90a1141a03e5249770a6a670b818fe307e1d (diff) | |
download | gitea-c05701dd7d72aea75c67fbb07df928c192474686.tar.gz gitea-c05701dd7d72aea75c67fbb07df928c192474686.zip |
Fix frontpage avatars (#13853)
The frontpage uses a rather strange method to obtain the commit's avatar
which I've overlooked earlier. I don't exactly understand how it works
but this change fixes the wrong default avatars by using the function
that was in previous use.
Also introduced a few constants for size an size increase factor.
Fixes: https://github.com/go-gitea/gitea/issues/13844
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r-- | templates/repo/view_list.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 651747f20a..3266a813e3 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -3,7 +3,7 @@ <tr class="commit-list"> <th colspan="2"> {{if .LatestCommitUser}} - {{avatar .LatestCommitUser 28 "img-12"}} + {{avatar .LatestCommitUser 24}} {{if .LatestCommitUser.FullName}} <a href="{{AppSubUrl}}/{{.LatestCommitUser.Name}}"><strong>{{.LatestCommitUser.FullName}}</strong></a> {{else}} @@ -11,7 +11,7 @@ {{end}} {{else}} {{if .LatestCommit.Author}} - {{avatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 28 "img-12"}} + {{avatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24}} <strong>{{.LatestCommit.Author.Name}}</strong> {{end}} {{end}} |