diff options
author | silverwind <me@silverwind.io> | 2021-05-08 16:27:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 16:27:25 +0200 |
commit | 24ad131221d8cb0becf726e0570f53838262edf1 (patch) | |
tree | a06648e4fd6b051eaca60513b63ba3fe69314cd1 /templates/org | |
parent | e2786147539909eaef2bc39fb728a10b88277d31 (diff) | |
download | gitea-24ad131221d8cb0becf726e0570f53838262edf1.tar.gz gitea-24ad131221d8cb0becf726e0570f53838262edf1.zip |
Rename StaticUrlPrefix to AssetUrlPrefix (#15779)
Use a new name for this template/frontend variable to make it distinct
from the server variable StaticURLPrefix.
Diffstat (limited to 'templates/org')
-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 c15d850e00..d070b8bc4b 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 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> |