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:
@@ -5,31 +5,31 @@
|
||||
<div class="ui blue tiny button">{{.i18n.Tr "repo.settings.add_webhook"}}</div>
|
||||
<div class="menu">
|
||||
<a class="item" href="{{.BaseLinkNew}}/gitea/new">
|
||||
<img width="20" height="20" src="{{StaticUrlPrefix}}/img/gitea.svg">Gitea
|
||||
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/gitea.svg">Gitea
|
||||
</a>
|
||||
<a class="item" href="{{.BaseLinkNew}}/gogs/new">
|
||||
<img width="20" height="20" src="{{StaticUrlPrefix}}/img/gogs.ico">Gogs
|
||||
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/gogs.ico">Gogs
|
||||
</a>
|
||||
<a class="item" href="{{.BaseLinkNew}}/slack/new">
|
||||
<img width="20" height="20" src="{{StaticUrlPrefix}}/img/slack.png">Slack
|
||||
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/slack.png">Slack
|
||||
</a>
|
||||
<a class="item" href="{{.BaseLinkNew}}/discord/new">
|
||||
<img width="20" height="20" src="{{StaticUrlPrefix}}/img/discord.png">Discord
|
||||
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/discord.png">Discord
|
||||
</a>
|
||||
<a class="item" href="{{.BaseLinkNew}}/dingtalk/new">
|
||||
<img width="20" height="20" src="{{StaticUrlPrefix}}/img/dingtalk.ico">Dingtalk
|
||||
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/dingtalk.ico">Dingtalk
|
||||
</a>
|
||||
<a class="item" href="{{.BaseLinkNew}}/telegram/new">
|
||||
<img width="20" height="20" src="{{StaticUrlPrefix}}/img/telegram.png">Telegram
|
||||
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/telegram.png">Telegram
|
||||
</a>
|
||||
<a class="item" href="{{.BaseLinkNew}}/msteams/new">
|
||||
<img width="20" height="20" src="{{StaticUrlPrefix}}/img/msteams.png">Microsoft Teams
|
||||
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/msteams.png">Microsoft Teams
|
||||
</a>
|
||||
<a class="item" href="{{.BaseLinkNew}}/feishu/new">
|
||||
<img width="20" height="20" src="{{StaticUrlPrefix}}/img/feishu.png">Feishu
|
||||
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/feishu.png">Feishu
|
||||
</a>
|
||||
<a class="item" href="{{.BaseLinkNew}}/matrix/new">
|
||||
<img width="20" height="20" src="{{StaticUrlPrefix}}/img/matrix.svg">Matrix
|
||||
<img width="20" height="20" src="{{AssetUrlPrefix}}/img/matrix.svg">Matrix
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -8,23 +8,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>
|
||||
|
Reference in New Issue
Block a user