[PATCH] pullrequest overview: fix missing pager links

Thomas De Schampheleire patrickdepinguin at gmail.com
Mon Apr 20 15:35:46 EDT 2015


# HG changeset patch
# User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
# Date 1429558406 -7200
#      Mon Apr 20 21:33:26 2015 +0200
# Branch stable
# Node ID bd4f453a00553ed0ea3016596621106293acbf7d
# Parent  991308f4997919f232dcef514e84a541f9191d6f
pullrequest overview: fix missing pager links

Commit 0f9a48e0adc3 refactored the pullrequest overview pages, but has a
bug causing no more than 10 pull requests to be shown, without pager links.
The code assumed that 'pager' was a variable, rather than a method, of the
pullrequests structure.

diff --git a/kallithea/templates/pullrequests/pullrequest_data.html b/kallithea/templates/pullrequests/pullrequest_data.html
--- a/kallithea/templates/pullrequests/pullrequest_data.html
+++ b/kallithea/templates/pullrequests/pullrequest_data.html
@@ -82,7 +82,7 @@
   </table>
 </div>
 
-%if pager in pullrequests:
+%if pullrequests.pager:
 <div class="notification-paginator">
   <div class="pagination-wh pagination-left">
   ${pullrequests.pager('$link_previous ~2~ $link_next', **request.GET.mixed())}


More information about the kallithea-general mailing list