mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Rename StaticUrlPrefix to AssetUrlPrefix (#15779)
Use a new name for this template/frontend variable to make it distinct from the server variable StaticURLPrefix.
This commit is contained in:
@@ -15,23 +15,23 @@
|
||||
{{end}}
|
||||
<div class="ui right">
|
||||
{{if eq .HookType "gitea"}}
|
||||
<img width="26" height="26" src="{{StaticUrlPrefix}}/img/gitea.svg">
|
||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/gitea.svg">
|
||||
{{else if eq .HookType "gogs"}}
|
||||
<img width="26" height="26" src="{{StaticUrlPrefix}}/img/gogs.ico">
|
||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/gogs.ico">
|
||||
{{else if eq .HookType "slack"}}
|
||||
<img width="26" height="26" src="{{StaticUrlPrefix}}/img/slack.png">
|
||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/slack.png">
|
||||
{{else if eq .HookType "discord"}}
|
||||
<img width="26" height="26" src="{{StaticUrlPrefix}}/img/discord.png">
|
||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/discord.png">
|
||||
{{else if eq .HookType "dingtalk"}}
|
||||
<img width="26" height="26" src="{{StaticUrlPrefix}}/img/dingtalk.ico">
|
||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/dingtalk.ico">
|
||||
{{else if eq .HookType "telegram"}}
|
||||
<img width="26" height="26" src="{{StaticUrlPrefix}}/img/telegram.png">
|
||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/telegram.png">
|
||||
{{else if eq .HookType "msteams"}}
|
||||
<img width="26" height="26" src="{{StaticUrlPrefix}}/img/msteams.png">
|
||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/msteams.png">
|
||||
{{else if eq .HookType "feishu"}}
|
||||
<img width="26" height="26" src="{{StaticUrlPrefix}}/img/feishu.png">
|
||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/feishu.png">
|
||||
{{else if eq .HookType "matrix"}}
|
||||
<img width="26" height="26" src="{{StaticUrlPrefix}}/img/matrix.svg">
|
||||
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/matrix.svg">
|
||||
{{end}}
|
||||
</div>
|
||||
</h4>
|
||||
|
Reference in New Issue
Block a user