]> source.dussan.org Git - gitea.git/commit
Fix notification list bugs (#25781)
authorwxiaoguang <wxiaoguang@gmail.com>
Sun, 9 Jul 2023 18:42:31 +0000 (02:42 +0800)
committerGitHub <noreply@github.com>
Sun, 9 Jul 2023 18:42:31 +0000 (18:42 +0000)
commit84c78650cc2d7c6480f397d59e1d4e33a5f71d19
tree17b535c6c4a49a1260fa09467157e43f8522aacb
parent321383db22b19e302aafe59194f0b6539257d90f
Fix notification list bugs (#25781)

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.
routers/web/user/notification.go
templates/user/notification/notification_div.tmpl
templates/user/notification/notification_subscriptions.tmpl
web_src/js/features/notification.js