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/org/settings | |
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/org/settings')
-rw-r--r-- | templates/org/settings/hook_new.tmpl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/org/settings/hook_new.tmpl b/templates/org/settings/hook_new.tmpl index 96769c7446..2fdf2662d6 100644 --- a/templates/org/settings/hook_new.tmpl +++ b/templates/org/settings/hook_new.tmpl @@ -10,23 +10,23 @@ {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}} <div class="ui right"> {{if eq .HookType "gitea"}} - <img class="img-13" src="{{StaticUrlPrefix}}/img/gitea-sm.png"> + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/gitea-sm.png"> {{else if eq .HookType "gogs"}} - <img class="img-13" src="{{StaticUrlPrefix}}/img/gogs.ico"> + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/gogs.ico"> {{else if eq .HookType "slack"}} - <img class="img-13" src="{{StaticUrlPrefix}}/img/slack.png"> + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/slack.png"> {{else if eq .HookType "discord"}} - <img class="img-13" src="{{StaticUrlPrefix}}/img/discord.png"> + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/discord.png"> {{else if eq .HookType "dingtalk"}} - <img class="img-13" src="{{StaticUrlPrefix}}/img/dingtalk.png"> + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/dingtalk.png"> {{else if eq .HookType "telegram"}} - <img class="img-13" src="{{StaticUrlPrefix}}/img/telegram.png"> + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/telegram.png"> {{else if eq .HookType "msteams"}} - <img class="img-13" src="{{StaticUrlPrefix}}/img/msteams.png"> + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/msteams.png"> {{else if eq .HookType "feishu"}} - <img class="img-13" src="{{StaticUrlPrefix}}/img/feishu.png"> + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/feishu.png"> {{else if eq .HookType "matrix"}} - <img class="img-13" src="{{StaticUrlPrefix}}/img/matrix.svg"> + <img width="26" height="26" src="{{StaticUrlPrefix}}/img/matrix.svg"> {{end}} </div> </h4> |