[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tpo/master] fixup! Fix #75: Coverage list is too long



commit 57b5730b904e7503a6183c66f39c79281923adfc
Author: HackerNCoder <hackerncoder@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 %}



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits