diff options
author | Mario Lubenka <mario.lubenka@googlemail.com> | 2019-06-02 08:40:12 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-06-02 14:40:12 +0800 |
commit | 8eba27c79257c6bc68cefbdffbb36d3596e6d3ee (patch) | |
tree | 3a79fd7a5beb49d212d82bf61df7d8cd9bf1a613 /custom | |
parent | 356854fc5f8d7d1a7e4d68c9e00929e9ce8aa867 (diff) | |
download | gitea-8eba27c79257c6bc68cefbdffbb36d3596e6d3ee.tar.gz gitea-8eba27c79257c6bc68cefbdffbb36d3596e6d3ee.zip |
Repository avatar fallback configuration (#7087)
* Only show repository avatar in list when one was selected
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adds fallback configuration option for repository avatar
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Implements repository avatar fallback
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adds admin task for deleting generated repository avatars
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Solve linting issues
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Save avatar before updating database
* Linting
* Update models/repo.go
Co-Authored-By: zeripath <art27@cantab.net>
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.ini.sample | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index e8e3ffada6..a674984a25 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -505,6 +505,10 @@ SESSION_LIFE_TIME = 86400 [picture] AVATAR_UPLOAD_PATH = data/avatars REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars +; How Gitea deals with missing repository avatars +; none = no avatar will be displayed; random = random avatar will be displayed; image = default image will be used +REPOSITORY_AVATAR_FALLBACK = none +REPOSITORY_AVATAR_FALLBACK_IMAGE = /img/repo_default.png ; Max Width and Height of uploaded avatars. ; This is to limit the amount of RAM used when resizing the image. AVATAR_MAX_WIDTH = 4096 |