]> source.dussan.org Git - gitea.git/commit
Fix notification list bugs (#25781) (#25787)
authorGiteabot <teabot@gitea.io>
Sun, 9 Jul 2023 19:15:00 +0000 (15:15 -0400)
committerGitHub <noreply@github.com>
Sun, 9 Jul 2023 19:15:00 +0000 (19:15 +0000)
commita5a3c8141274bbcc12e5c4f72b85e02efe47841c
tree3c4d8c60d1510d466dd97c67665cc9ddd96dfd35
parentea2c9de3c457afb648191b501582a73f7b5498e4
Fix notification list bugs (#25781) (#25787)

Backport #25781 by @wxiaoguang

Fix #25627

1. `ctx.Data["Link"]` should use relative URL but not AppURL
2. The `data-params` is incorrect because it doesn't contain "page". JS
can simply use "window.location.search" to construct the AJAX URL
3. The `data-xxx` and `id` in notification_subscriptions.tmpl were
copied&pasted, they don't have affect.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
routers/web/user/notification.go
templates/user/notification/notification_div.tmpl
templates/user/notification/notification_subscriptions.tmpl
web_src/js/features/notification.js