From e6777492376af80a6160cea0f3ad3aeb17fb9632 Mon Sep 17 00:00:00 2001 From: Mathieu Pillard Date: Tue, 27 Apr 2010 17:06:53 +0200 Subject: [PATCH] Move pagination outside the global div --- .../alternate/display_comments_toplevel.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/mptt_comments/templates/comments/alternate/display_comments_toplevel.html b/mptt_comments/templates/comments/alternate/display_comments_toplevel.html index 1a9232b..86c8665 100644 --- a/mptt_comments/templates/comments/alternate/display_comments_toplevel.html +++ b/mptt_comments/templates/comments/alternate/display_comments_toplevel.html @@ -11,18 +11,20 @@ {% get_comment_count for object as comment_count %} {% get_mptt_comment_toplevel_count for object as comment_toplevel_count %}

{% trans "Comments" %} {% blocktrans %}({{ comment_count }} comments in {{ comment_toplevel_count }} threads){% endblocktrans %}

-
- {% if not internal_pagination %} - {% paginate %} - {% endif %} + {% if not internal_pagination %} + {% paginate %} + {% endif %} +
{% for comment in comments %} {% include "comments/alternate/display_comment_toplevel.html" %} {% endfor %} - {% if not internal_pagination %} - {% paginate %} - {% endif %} - {# FIXME: else, fix "remaining" to use it in alternate mode #} + +
+ {% if not internal_pagination %} + {% paginate %} + {% endif %} + {# FIXME: else, fix "remaining" to use it in alternate mode #} {% endif %}

{% trans "Post a new comment" %}