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/repo | |
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/repo')
-rw-r--r-- | templates/repo/migrate/migrating.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/settings/webhook/base_list.tmpl | 18 | ||||
-rw-r--r-- | templates/repo/settings/webhook/new.tmpl | 18 | ||||
-rw-r--r-- | templates/repo/view_file.tmpl | 2 |
4 files changed, 21 insertions, 21 deletions
diff --git a/templates/repo/migrate/migrating.tmpl b/templates/repo/migrate/migrating.tmpl index 4bb31dc176..e4a3ec81f7 100644 --- a/templates/repo/migrate/migrating.tmpl +++ b/templates/repo/migrate/migrating.tmpl @@ -9,12 +9,12 @@ <div class="ui stackable middle very relaxed page grid"> <div id="repo_migrating" class="sixteen wide center aligned centered column" task="{{.MigrateTask.ID}}"> <div> - <img src="{{StaticUrlPrefix}}/img/loading.png"/> + <img src="{{AssetUrlPrefix}}/img/loading.png"/> </div> </div> <div id="repo_migrating_failed_image" class="sixteen wide center aligned centered column" style="display: none;"> <div> - <img src="{{StaticUrlPrefix}}/img/failed.png"/> + <img src="{{AssetUrlPrefix}}/img/failed.png"/> </div> </div> </div> diff --git a/templates/repo/settings/webhook/base_list.tmpl b/templates/repo/settings/webhook/base_list.tmpl index 7594230545..916272a97a 100644 --- a/templates/repo/settings/webhook/base_list.tmpl +++ b/templates/repo/settings/webhook/base_list.tmpl @@ -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> diff --git a/templates/repo/settings/webhook/new.tmpl b/templates/repo/settings/webhook/new.tmpl index 51038389f0..7c2e5b1a90 100644 --- a/templates/repo/settings/webhook/new.tmpl +++ b/templates/repo/settings/webhook/new.tmpl @@ -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> diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index b42283e23e..e3a52a8870 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -82,7 +82,7 @@ <strong>{{.i18n.Tr "repo.audio_not_supported_in_browser"}}</strong> </audio> {{else if .IsPDFFile}} - <iframe width="100%" height="600px" src="{{StaticUrlPrefix}}/vendor/plugins/pdfjs/web/viewer.html?file={{EscapePound $.RawFileLink}}"></iframe> + <iframe width="100%" height="600px" src="{{AssetUrlPrefix}}/vendor/plugins/pdfjs/web/viewer.html?file={{EscapePound $.RawFileLink}}"></iframe> {{else}} <a href="{{EscapePound $.RawFileLink}}" rel="nofollow" class="btn btn-gray btn-radius">{{.i18n.Tr "repo.file_view_raw"}}</a> {{end}} |