0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 22:11:32 +01:00
gitea/routers/web
Giteabot 00ea9af8e1
Editor error message misleading due to re-used key. (#29859) (#29876)
Backport #29859 by @buckybytes

The error message:

`editor.file_changed_while_editing = The file contents have changed
since you started editing. <a target="_blank" rel="noopener noreferrer"
href="%s">Click here</a> to see them or <strong>Commit Changes
again</strong> to overwrite them.`

Is re-used in inappropriate contexts. The link in the key goes to a 404
when the key is used in a situation where the file contents have not
changed.

Added two new keys to differentiate commit id mismatch and push out of
date conditions.

Co-authored-by: buckybytes <158571971+buckybytes@users.noreply.github.com>
2024-03-18 14:45:43 +08:00
..
admin Forbid removing the last admin user (#28337) (#28793) 2024-01-16 01:51:46 +00:00
auth Make "/user/login" page redirect if the current user has signed in (#29583) (#29599) 2024-03-05 21:03:45 +08:00
devtest
events
explore Only use supported sort order for "explore/users" page (#29430) (#29443) 2024-03-03 02:28:45 +00:00
feed Rework markup link rendering (#26745) (#28803) 2024-01-16 02:13:29 +00:00
healthcheck
misc Refactor CORS handler (#28587) (#28611) 2023-12-25 21:01:24 +08:00
org Add missing database transaction for new issue (#29490) (#29607) 2024-03-05 16:37:55 +00:00
repo Editor error message misleading due to re-used key. (#29859) (#29876) 2024-03-18 14:45:43 +08:00
shared Fix project counter in organization/individual profile (#28068) (#29361) 2024-02-24 07:58:43 +00:00
user Fix user router possbile panic (#29751) (#29786) 2024-03-14 12:44:14 +08:00
base.go Fix panic in storageHandler (#27446) (#27479) 2023-10-06 16:51:26 +02:00
githttp.go Refactor CORS handler (#28587) (#28611) 2023-12-25 21:01:24 +08:00
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Use Get but not Post to get actions artifacts (#29734) (#29737) 2024-03-12 17:31:45 +01:00
webfinger.go