You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wxiaoguang 2bce1ea986
Show messages for users if the ROOT_URL is wrong, show JavaScript errors (#18971)
* ROOT_URL issues: some users did wrong to there app.ini config, then:
    * The assets can not be loaded (AppSubUrl != "" and users try to access http://host:3000/)
    *The ROOT_URL is wrong, then many URLs in Gitea are broken.
Now Gitea show enough information to users.

* JavaScript error issues, there are many users affected by JavaScript errors, some are caused by frontend bugs, some are caused by broken customized templates. If these JS errors can be found at first time, then maintainers do not need to ask about how bug occurs again and again.

* Some people like to modify the `head.tmpl`, so we separate the script part to `head_script.tmpl`, then it's much safer.

* use specialized CSS class "js-global-error", end users still have a chance to hide error messages by customized CSS styles.
2 years ago
..
alert.tmpl Return the full rejection message and errors in flash errors (#13221) 4 years ago
alert_details.tmpl Enforce tab indentation in templates (#15289) 3 years ago
delete_modal_actions.tmpl Show correct "No" icon (#17537) 3 years ago
disable_form_autofill.tmpl Disable form autofill (#17291) 3 years ago
footer.tmpl Show messages for users if the ROOT_URL is wrong, show JavaScript errors (#18971) 2 years ago
footer_content.tmpl Remove the Go version in UI, add a link on Gitea Version to show config details (Go/Git version) (#19173) 2 years ago
head.tmpl Show messages for users if the ROOT_URL is wrong, show JavaScript errors (#18971) 2 years ago
head_navbar.tmpl Cleanup and use global style on popups (#17674) 3 years ago
head_script.tmpl Show messages for users if the ROOT_URL is wrong, show JavaScript errors (#18971) 2 years ago
paginate.tmpl Replace more icons with SVG, repo search tweaks (#13860) 4 years ago