From e81eefcf62abc0796f41900dfb160fcc6d6ef4bb Mon Sep 17 00:00:00 2001 From: halcyon <864072399@qq.com> Date: Sat, 7 Mar 2015 18:06:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=84=E7=A7=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/paginator.html | 74 ++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 40 deletions(-) diff --git a/templates/paginator.html b/templates/paginator.html index 21455e707..f322d9405 100644 --- a/templates/paginator.html +++ b/templates/paginator.html @@ -1,44 +1,38 @@ -
-
- - -
-
-
-
    +
    +
    +
      - {% if contacts.has_previous %} - + {% if contacts.has_previous %} + + {% else %} + + {% endif %} + {% ifequal show_first 1 %} +
    • 1...
    • + {% endifequal %} + {% for page in page_range %} + {% ifequal current_page page %} +
    • {{ page }}
    • {% else %} - - {% endif %} - {% ifequal show_first 1 %} -
    • 1...
    • - {% endifequal %} - {% for page in page_range %} - {% ifequal current_page page %} -
    • {{ page }}
    • - {% else %} -
    • {{ page }}
    • - {% endifequal %} - {% endfor %} - {% ifequal show_end 1 %} -
    • ...{{ p.num_pages }}
    • +
    • {{ page }}
    • {% endifequal %} - {% if contacts.has_next %} - - {% else %} - - {% endif %} -
    -
    + {% endfor %} + {% ifequal show_end 1 %} +
  • ...{{ p.num_pages }}
  • + {% endifequal %} + {% if contacts.has_next %} + + {% else %} + + {% endif %} +
-
\ No newline at end of file +