From 32632f4859754c5bb78ccfb07d6704edade9ec3e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 12 2019 11:20:21 +0000 Subject: Fix the pagination on the fork page of the dashboard We were not checking the proper variable to check if the page has to be paginated. This fixes it, the page gets now properly paginated. Fixes https://pagure.io/pagure/issue/4327 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/userdash_forks.html b/pagure/templates/userdash_forks.html index 82d6227..0611f0c 100644 --- a/pagure/templates/userdash_forks.html +++ b/pagure/templates/userdash_forks.html @@ -86,9 +86,10 @@ {% endfor %} - {% if repos_length and repos_length > 1 %} + {% if total_fork_page > 1 %} {{ pagination_link('forkpage', forkpage, total_fork_page, repopage=repopage) }} {% endif %} + {% else %}