Only show pagination if we have pages to show
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 2 Jul 2011 23:31:02 +0000 (18:31 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 2 Jul 2011 23:31:02 +0000 (18:31 -0500)
mediagoblin/templates/mediagoblin/utils/pagination.html

index 2423d08d79a007f25c9c3a7fae356926263b9460..7b55b81d93a425c9ca3d0241d2b64c3322a66373 100644 (file)
@@ -17,9 +17,9 @@
 
 {# only display if {{pagination}} is defined #}
 
-{% if pagination %}
+{% if pagination and pagination.pages > 1 %}
   <div class="pagination">
-  <p>
+    <p>
       {% if pagination.has_prev %}
         <a href="{{ pagination.get_page_url(request, pagination.page-1) }}">&laquo; Prev</a>
       {% endif %}