summaryrefslogtreecommitdiffstats
path: root/routers/user/notification.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix notifications page links (#12838)zeripath2020-09-151-0/+1
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Use AJAX for notifications table (#10961)zeripath2020-04-241-17/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use AJAX for notifications table Signed-off-by: Andrew Thornton <art27@cantab.net> * move to separate js Signed-off-by: Andrew Thornton <art27@cantab.net> * placate golangci-lint Signed-off-by: Andrew Thornton <art27@cantab.net> * Add autoupdating notification count Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix wipeall Signed-off-by: Andrew Thornton <art27@cantab.net> * placate tests Signed-off-by: Andrew Thornton <art27@cantab.net> * Try hidden Signed-off-by: Andrew Thornton <art27@cantab.net> * Try hide and hidden Signed-off-by: Andrew Thornton <art27@cantab.net> * More auto-update improvements Only run checker on pages that have a count Change starting checker to 10s with a back-off to 60s if there is no change Signed-off-by: Andrew Thornton <art27@cantab.net> * string comparison! Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @silverwind Signed-off-by: Andrew Thornton <art27@cantab.net> * add configurability as per @6543 Signed-off-by: Andrew Thornton <art27@cantab.net> * Add documentation as per @6543 Signed-off-by: Andrew Thornton <art27@cantab.net> * Use CSRF header not query Signed-off-by: Andrew Thornton <art27@cantab.net> * Further JS improvements Fix @etzelia update notification table request Fix @silverwind comments Co-Authored-By: silverwind <me@silverwind.io> Signed-off-by: Andrew Thornton <art27@cantab.net> * Simplify the notification count fns Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io>
* Protect against NPEs in notifications list (#10879)zeripath2020-03-291-3/+18
| | | | | | | | | | | | Unfortunately there appears to be potential race with notifications being set before the associated issue has been committed. This PR adds protection in to the notifications list to log any failures and remove these notifications from the display. References #10815 - and prevents the panic but does not completely fix this. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Improve notification pager (#9821)Lunny Xiao2020-01-171-8/+14
| | | | Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Improve notification (#8835)Lunny Xiao2019-11-121-0/+19
| | | | | | | | | | | | | | | | | | | | * Improve notifications * batch load user * Update notification only when read * Fix reorder * fix lint * fix test * fix lint * make function meaningful * fix comment
* Unifies pagination template usage (#6531) (#6533)Mario Lubenka2019-04-201-3/+9
|
* Handle refactor (#3339)Morgan Bazalgette2018-01-101-6/+6
| | | | | | * Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound
* Add 'mark all read' option to notifications (#3097)Sasha Varlamov2017-12-071-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add 'mark all read' option to notifications Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com> * Fix exported comment Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com> * Format method comments Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com> * Fix exported comment Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com> Format method comments Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com> Tests for reactions (#3083) * Unit tests for reactions * Fix import order Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv> Fix reaction possition when there is attachments (#3099) Refactor notifications swap function * Accept change to drop beforeupdate call * Update purge notifications error message for consistency * Drop unnecessary check for mark all as read button * Remove debugging comment
* fix: trim the whitespaces for the search keyword (#893)Bo-Yi Wu2017-02-111-1/+1
|
* Unit tests and remove unused functions in models/notification (#796)Ethan Koenig2017-01-301-1/+1
| | | | | | * Unit tests and remove unused functions in models/notification * Read -> Unread
* Notifications: trying to get a better layout (#660)Andrey Nering2017-01-181-2/+2
| | | | | | | | | | | | | | * i18n button titles * Improvements on notification page layout * Notification count badge fixes * Make table <tr> clickable * Fix octicon aligment * Fix use of AppSubUrl
* docs: update translation on notification page for zh-CN (#649)xgitea2017-01-131-1/+1
| | | | | | * docs: update translation on notification page for zh-CN * use international resources
* Notifications: mark as read/unread and pin (#629)Andrey Nering2017-01-121-1/+34
| | | | | | | | | | * Use relative URLs * Notifications - Mark as read/unread * Feature of pinning a notification * On view issue, do not mark as read a pinned notification
* Add pagination for notificationsAndrey Nering2017-01-031-3/+25
|
* Do not get count on /api routersAndrey Nering2017-01-021-0/+5
|
* Notifications - Step 2Andrey Nering2016-12-301-0/+54