[PATCH] notifications: ensure paginator's links remain correct after Mark All Read

Søren Løvborg sorenl at unity3d.com
Fri Sep 11 10:35:35 UTC 2015


Excellent, now I can take that off the todo-list. :-)

/Søren

On Thu, Sep 10, 2015 at 11:31 PM, Andrew Shadura <andrew at shadura.me> wrote:

> # HG changeset patch
> # User Andrew Shadura <andrew at shadura.me>
> # 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
>
>  <div class="notification-paginator">
>    <div class="pagination-wh pagination-left">
> -  ${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())}
>    </div>
>  </div>
>
> _______________________________________________
> kallithea-general mailing list
> kallithea-general at sfconservancy.org
> http://lists.sfconservancy.org/mailman/listinfo/kallithea-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20150911/b66b79b5/attachment.html>


More information about the kallithea-general mailing list