diff options
author | Jakob Ackermann <das7pad@outlook.com> | 2019-10-22 14:11:01 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-22 20:11:01 +0800 |
commit | 00629fea95970e99ba5ef05954bbad0804805df6 (patch) | |
tree | 1590e0f7913c71689727cc17a3bf2786b43028ce /templates/repo/settings/webhook | |
parent | d0c7a08d751bd068e557efe56683b999d29eb910 (diff) | |
download | gitea-00629fea95970e99ba5ef05954bbad0804805df6.tar.gz gitea-00629fea95970e99ba5ef05954bbad0804805df6.zip |
[assets] configurable URL for static resources (#7911)
* static url
* add cors support for static resources
* [assets] work on the migration to configurable url for assets
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [misc] fix whitespace
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [assets] fix the loading of the manifest.json
It is generated dynamically, and as such can not be served by the cdn.
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* Revert "add cors support for static resources"
This reverts commit 42f964fd181dbb8b139808b9be623470d4f0e40f
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [docs] add the STATIC_URL_PREFIX option
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [docs] reverse-proxy: nginx: add two setups for STATIC_URL_PREFIX
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [assets] migrate the url of a new asset to the static url prefix
REF: f2a3abc683ad4b2177b7c7c6160a2c0b4316120a
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
Diffstat (limited to 'templates/repo/settings/webhook')
-rw-r--r-- | templates/repo/settings/webhook/list.tmpl | 14 | ||||
-rw-r--r-- | templates/repo/settings/webhook/new.tmpl | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/templates/repo/settings/webhook/list.tmpl b/templates/repo/settings/webhook/list.tmpl index 8fdae45b1b..d1784564dc 100644 --- a/templates/repo/settings/webhook/list.tmpl +++ b/templates/repo/settings/webhook/list.tmpl @@ -6,25 +6,25 @@ <div class="ui blue tiny button">{{.i18n.Tr "repo.settings.add_webhook"}}</div> <div class="menu"> <a class="item" href="{{.BaseLink}}/gitea/new"> - <img class="img-10" src="{{AppSubUrl}}/img/gitea-sm.png">Gitea + <img class="img-10" src="{{StaticUrlPrefix}}/img/gitea-sm.png">Gitea </a> <a class="item" href="{{.BaseLink}}/gogs/new"> - <img class="img-10" src="{{AppSubUrl}}/img/gogs.ico">Gogs + <img class="img-10" src="{{StaticUrlPrefix}}/img/gogs.ico">Gogs </a> <a class="item" href="{{.BaseLink}}/slack/new"> - <img class="img-10" src="{{AppSubUrl}}/img/slack.png">Slack + <img class="img-10" src="{{StaticUrlPrefix}}/img/slack.png">Slack </a> <a class="item" href="{{.BaseLink}}/discord/new"> - <img class="img-10" src="{{AppSubUrl}}/img/discord.png">Discord + <img class="img-10" src="{{StaticUrlPrefix}}/img/discord.png">Discord </a> <a class="item" href="{{.BaseLink}}/dingtalk/new"> - <img class="img-10" src="{{AppSubUrl}}/img/dingtalk.ico">Dingtalk + <img class="img-10" src="{{StaticUrlPrefix}}/img/dingtalk.ico">Dingtalk </a> <a class="item" href="{{.BaseLink}}/telegram/new"> - <img class="img-10" src="{{AppSubUrl}}/img/telegram.png">Telegram + <img class="img-10" src="{{StaticUrlPrefix}}/img/telegram.png">Telegram </a> <a class="item" href="{{.BaseLink}}/msteams/new"> - <img class="img-10" src="{{AppSubUrl}}/img/msteams.png">Microsoft Teams + <img class="img-10" src="{{StaticUrlPrefix}}/img/msteams.png">Microsoft Teams </a> </div> </div> diff --git a/templates/repo/settings/webhook/new.tmpl b/templates/repo/settings/webhook/new.tmpl index 358827c0f8..1d5d849738 100644 --- a/templates/repo/settings/webhook/new.tmpl +++ b/templates/repo/settings/webhook/new.tmpl @@ -8,19 +8,19 @@ {{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="{{AppSubUrl}}/img/gitea-sm.png"> + <img class="img-13" src="{{StaticUrlPrefix}}/img/gitea-sm.png"> {{else if eq .HookType "gogs"}} - <img class="img-13" src="{{AppSubUrl}}/img/gogs.ico"> + <img class="img-13" src="{{StaticUrlPrefix}}/img/gogs.ico"> {{else if eq .HookType "slack"}} - <img class="img-13" src="{{AppSubUrl}}/img/slack.png"> + <img class="img-13" src="{{StaticUrlPrefix}}/img/slack.png"> {{else if eq .HookType "discord"}} - <img class="img-13" src="{{AppSubUrl}}/img/discord.png"> + <img class="img-13" src="{{StaticUrlPrefix}}/img/discord.png"> {{else if eq .HookType "dingtalk"}} - <img class="img-13" src="{{AppSubUrl}}/img/dingtalk.ico"> + <img class="img-13" src="{{StaticUrlPrefix}}/img/dingtalk.ico"> {{else if eq .HookType "telegram"}} - <img class="img-13" src="{{AppSubUrl}}/img/telegram.png"> + <img class="img-13" src="{{StaticUrlPrefix}}/img/telegram.png"> {{else if eq .HookType "msteams"}} - <img class="img-13" src="{{AppSubUrl}}/img/msteams.png"> + <img class="img-13" src="{{StaticUrlPrefix}}/img/msteams.png"> {{end}} </div> </h4> |