From patchwork Thu Sep 10 21:30:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: notifications: ensure paginator's links remain correct after Mark All Read From: Andrew Shadura X-Patchwork-Id: 10474 Message-Id: <7a3677a677e363e5ce11.1441920601@nuevo> To: mercurial-devel@selenic.com Date: Thu, 10 Sep 2015 23:30:01 +0200 # HG changeset patch # User Andrew Shadura # Date 1441920590 -7200 # Thu Sep 10 23:29:50 2015 +0200 # Node ID 7a3677a677e363e5ce1184f2451c73c26c100ad1 # Parent c9bb2d6186ba8b86a2a0695bc90ac8c8009e420c notifications: ensure paginator's links remain correct after Mark All Read Paginator is loaded together with the dynamic page content, so when it's generated, a wrong URL may be used for its links. diff --git a/kallithea/templates/admin/notifications/notifications_data.html b/kallithea/templates/admin/notifications/notifications_data.html --- a/kallithea/templates/admin/notifications/notifications_data.html +++ b/kallithea/templates/admin/notifications/notifications_data.html @@ -32,7 +32,7 @@ unread = lambda n:{False:'unread'}.get(n
- ${c.notifications.pager('$link_previous ~2~ $link_next',**request.GET.mixed())} + ${c.notifications.pager('$link_previous ~2~ $link_next',controller='admin/notifications',**request.GET.mixed())}