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/status | |
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/status')
-rw-r--r-- | templates/status/404.tmpl | 2 | ||||
-rw-r--r-- | templates/status/500.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index 6f572b43b3..728e5b272c 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -2,7 +2,7 @@ <div class="page-content ui container center full-screen-width {{if .IsRepo}}repository{{end}}"> {{if .IsRepo}}{{template "repo/header" .}}{{end}} <div class="ui container center"> - <p style="margin-top: 100px"><img class="ui centered image" src="{{StaticUrlPrefix}}/img/404.png" alt="404"/></p> + <p style="margin-top: 100px"><img class="ui centered image" src="{{AssetUrlPrefix}}/img/404.png" alt="404"/></p> <div class="ui divider"></div> <br> <p>{{.i18n.Tr "error404" | Safe}} diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl index 3f1b205d36..e2eeb407b8 100644 --- a/templates/status/500.tmpl +++ b/templates/status/500.tmpl @@ -1,6 +1,6 @@ {{template "base/head" .}} <div class="page-content ui container full-screen-width center"> - <p style="margin-top: 100px"><img class="ui centered image" src="{{StaticUrlPrefix}}/img/500.png" alt="500"/></p> + <p style="margin-top: 100px"><img class="ui centered image" src="{{AssetUrlPrefix}}/img/500.png" alt="500"/></p> <div class="ui divider"></div> <br> {{if .ErrorMsg}}<p>{{.i18n.Tr "error.occurred"}}:</p> |