# HG changeset patch # User Daniele Nicolodi # Date 1320748644 -3600 # Node ID 2c1253e826cc5bd4eddf407e6058570c42a5c81c # Parent 342125a26ff11494a0b137ae7fbccaedf0440ad5 Enforce minimum number of items per page. diff -r 342125a26ff1 -r 2c1253e826cc src/ltpdarepo/templates/pagination.html --- a/src/ltpdarepo/templates/pagination.html Tue Nov 08 11:28:39 2011 +0100 +++ b/src/ltpdarepo/templates/pagination.html Tue Nov 08 11:37:24 2011 +0100 @@ -4,10 +4,14 @@ {% if pagination.count > pagination.size %} {{ pagination.size }} of {{ pagination.count }} objects show more + {% if pagination.size > 16 %} less + {% endif %} {% else %} {{ pagination.count }} objects + {% if pagination.size > 16 %} show less + {% endif %} {% endif %}