mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-02 05:24:35 +01:00
7ddc11def7
In some cases, the loading failure of `index.js` is not related to the ROOT_URL directly, ex: https://gitea.com/gitea/helm-chart/issues/392 If the user's reversed proxy is mis-configured: `http://public-domain/gitea/xxx` -> `http://gitea:3000/gitea/xxx`, it also causes the loading failure. So this PR removes the ROOT_URL related tip from the error message.
29 lines
771 B
Handlebars
29 lines
771 B
Handlebars
{{if false}}
|
|
{{/* to make html structure "likely" complete to prevent IDE warnings */}}
|
|
<html>
|
|
<body>
|
|
<div>
|
|
{{end}}
|
|
|
|
{{template "custom/body_inner_post" .}}
|
|
|
|
</div>
|
|
|
|
{{template "custom/body_outer_post" .}}
|
|
|
|
{{template "base/footer_content" .}}
|
|
|
|
<!-- Third-party libraries -->
|
|
{{if .EnableCaptcha}}
|
|
{{if eq .CaptchaType "recaptcha"}}
|
|
<script src='{{URLJoin .RecaptchaURL "api.js"}}' async></script>
|
|
{{end}}
|
|
{{if eq .CaptchaType "hcaptcha"}}
|
|
<script src='https://hcaptcha.com/1/api.js' async></script>
|
|
{{end}}
|
|
{{end}}
|
|
<script src="{{AssetUrlPrefix}}/js/index.js?v={{AssetVersion}}" onerror="alert('Failed to load asset files from ' + this.src + '. Please make sure the asset files can be accessed.')"></script>
|
|
{{template "custom/footer" .}}
|
|
</body>
|
|
</html>
|