0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 17:04:12 -05:00
forgejo/modules/context
Gusted e4e3df6c66
Handle invalid issues (#18111)
* Handle invalid issues

- When you hover over a issue reference, and the issue doesn't exist, it
will just hang on the loading animation.
- This patch fixes that by showing them the pop-up with a "Error
occured" message.

* Add I18N

* refactor

* fix comment for lint

* fix unit test for i18n

* fix unit test for i18n

* add comments

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2021-12-28 21:28:27 +08:00
..
access_log.go Pass down SignedUserName down to AccessLogger context (#16605) 2021-08-04 13:26:30 -04:00
api.go Handle invalid issues (#18111) 2021-12-28 21:28:27 +08:00
api_org.go Use a standalone struct name for Organization (#17632) 2021-11-19 19:41:40 +08:00
api_test.go
auth.go Move twofactor to models/login (#17143) 2021-09-25 15:00:12 +02:00
captcha.go
context.go Instead of using routerCtx just escape the url before routing (#18086) 2021-12-25 00:50:49 +08:00
csrf.go Redirect on bad CSRF instead of presenting bad page (#14937) 2021-07-08 15:57:24 +02:00
form.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 2021-08-11 02:31:13 +02:00
org.go Move accessmode into models/perm (#17828) 2021-11-28 12:58:28 +01:00
pagination.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
permission.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
private.go
repo.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
response.go
xsrf.go
xsrf_test.go