[PATCH] pullrequest overview: fix 'my pullrequests' overview

Thomas De Schampheleire patrickdepinguin at gmail.com
Tue Apr 21 03:06:11 EDT 2015


# HG changeset patch
# User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
# Date 1429599924 -7200
#      Tue Apr 21 09:05:24 2015 +0200
# Branch stable
# Node ID 2f8b21e9b783429c9535583f11169c1d0c7bb44a
# Parent  bd4f453a00553ed0ea3016596621106293acbf7d
pullrequest overview: fix 'my pullrequests' overview

Commit bd4f453a0055 fixed the pager links on pullrequest overviews, but
broke the 'my pull requests' page due to insufficient testing and
incomplete Python understanding.

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 pullrequests.pager:
+%if hasattr(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