[tor-commits] [tpo/master] fixup! Fix #75: Coverage list is too long
    gus at torproject.org 
    gus at torproject.org
       
    Mon Aug 30 17:57:48 UTC 2021
    
    
  
commit 57b5730b904e7503a6183c66f39c79281923adfc
Author: HackerNCoder <hackerncoder at encryptionin.space>
Date:   Mon Aug 30 17:27:43 2021 +0000
    fixup! Fix #75: Coverage list is too long
---
 templates/macros/pagination.html | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/templates/macros/pagination.html b/templates/macros/pagination.html
index 2aa681b7..cdff81d5 100644
--- a/templates/macros/pagination.html
+++ b/templates/macros/pagination.html
@@ -2,12 +2,7 @@
   <nav aria-label="page navigation">
     <ul class="pagination">
     {% if pagination.has_prev %}
-    <li class="page-item"><a class="page-link" href="{{ pagination.prev|url }}">Newer</a></li>
-    {% else %}
-    <li class="page-item disabled"><a class="page-link" href="">Newer</a></li>
-    {% endif %}
-
-    {% if pagination.has_prev %}
+      <li class="page-item"><a class="page-link" href="{{ pagination.prev|url }}">Newer</a></li>
       {% if pagination.for_page(pagination.page-2).has_prev %}
         {% set goback = 2 %}
       {% else %}
@@ -46,6 +41,7 @@
       {% endif %}
     
     {% else %}
+      <li class="page-item disabled"><a class="page-link" href="">Newer</a></li>
       {% for i in range(pagination.page, pagination.page+5)%}
         {% set yearToShow = year-(i-1) %}
 	{% if yearToShow >= oldest %}
    
    
More information about the tor-commits
mailing list