Commits

Gregory Petukhov committed cc4ffaa

Hide pagination block if pages count is less then 2

  • Participants
  • Parent commits 8e71235

Comments (0)

Files changed (2)

common/templates/pagination.html

 {% load i18n %}
+{% if page.paginator.num_pages > 1 %}
 <div class="pagination">
     {% if page.has_previous %}
     <a href="{{ alterpath }}{{ page.previous_page_url }}">&laquo; {% trans "previous" %}</a>
     {% endif %}
 
     <div class="clear"></div>
-
 </div>
+{% endif %}
 from setuptools import setup
 
 PACKAGE = 'common'
-VERSION = '0.1.36'
+VERSION = '0.1.37'
 
 if __name__ == '__main__':
     # Compile the list of packages available, because distutils doesn't have