# HG changeset patch # User raph # Date 1273049512 -7200 # Node ID 1d4299775ec9753838815cfb311a9eff5bb61976 # Parent b545c82610df9bbb72fcbd1618f693f83bc82ebf fix history display when no pagination diff -r b545c82610df -r 1d4299775ec9 src/cm/templates/site/text_history.html --- a/src/cm/templates/site/text_history.html Thu Apr 22 18:09:44 2010 +0200 +++ b/src/cm/templates/site/text_history.html Wed May 05 10:51:52 2010 +0200 @@ -84,6 +84,8 @@ + {% with object_list|length as object_list_len %} + {% for text_version in object_list %} {% get_local_text_perm request text can_edit_text as can_edit_text %} @@ -92,7 +94,7 @@ {% if can_manage_workspace %}{% endif %} - #{{ forloop.counter0|add:page_obj.start_index|invneg:paginator.count|add:"1" }} + #{% if page_obj %}{{ forloop.counter0|add:page_obj.start_index|invneg:paginator.count|add:"1" }}{% else %}{{ forloop.counter0|invneg:object_list_len }}{% endif %} @@ -159,6 +161,8 @@ {% endfor %} + + {% endwith %}