]> source.dussan.org Git - gitea.git/commit
Fix frontpage avatars (#13853)
authorsilverwind <me@silverwind.io>
Wed, 9 Dec 2020 00:12:15 +0000 (01:12 +0100)
committerGitHub <noreply@github.com>
Wed, 9 Dec 2020 00:12:15 +0000 (01:12 +0100)
commitc05701dd7d72aea75c67fbb07df928c192474686
tree807d295c28ad57950120e0b14596168902efde0d
parent658e90a1141a03e5249770a6a670b818fe307e1d
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
13 files changed:
models/avatar.go
modules/repository/commits.go
modules/repository/commits_test.go
modules/templates/helper.go
templates/admin/hook_new.tmpl
templates/org/settings/hook_new.tmpl
templates/repo/release/list.tmpl
templates/repo/settings/webhook/list.tmpl
templates/repo/settings/webhook/new.tmpl
templates/repo/view_list.tmpl
templates/user/dashboard/feeds.tmpl
web_src/less/_base.less
web_src/less/helpers.less