summaryrefslogtreecommitdiffstats
path: root/templates/admin/hook_new.tmpl
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-09 01:12:15 +0100
committerGitHub <noreply@github.com>2020-12-09 01:12:15 +0100
commitc05701dd7d72aea75c67fbb07df928c192474686 (patch)
tree807d295c28ad57950120e0b14596168902efde0d /templates/admin/hook_new.tmpl
parent658e90a1141a03e5249770a6a670b818fe307e1d (diff)
downloadgitea-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/admin/hook_new.tmpl')
-rw-r--r--templates/admin/hook_new.tmpl18
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/admin/hook_new.tmpl b/templates/admin/hook_new.tmpl
index 8eeb0e5264..dabd568f93 100644
--- a/templates/admin/hook_new.tmpl
+++ b/templates/admin/hook_new.tmpl
@@ -11,23 +11,23 @@
{{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.ico">
+ <img width="26" height="26" src="{{StaticUrlPrefix}}/img/dingtalk.ico">
{{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>