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/swagger/ui.tmpl | |
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/swagger/ui.tmpl')
-rw-r--r-- | templates/swagger/ui.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/swagger/ui.tmpl b/templates/swagger/ui.tmpl index 4b4d791979..d665a273c3 100644 --- a/templates/swagger/ui.tmpl +++ b/templates/swagger/ui.tmpl @@ -3,11 +3,11 @@ <head> <meta charset="UTF-8"> <title>Gitea API</title> - <link href="{{StaticUrlPrefix}}/css/swagger.css?v={{MD5 AppVer}}" rel="stylesheet"> + <link href="{{AssetUrlPrefix}}/css/swagger.css?v={{MD5 AppVer}}" rel="stylesheet"> </head> <body> <a class="swagger-back-link" href="{{AppUrl}}">{{svg "octicon-reply"}}{{.i18n.Tr "return_to_gitea"}}</a> <div id="swagger-ui" data-source="{{AppUrl}}swagger.{{.APIJSONVersion}}.json"></div> - <script src="{{StaticUrlPrefix}}/js/swagger.js?v={{MD5 AppVer}}"></script> + <script src="{{AssetUrlPrefix}}/js/swagger.js?v={{MD5 AppVer}}"></script> </body> </html> |