X-Git-Url: https://git.openstreetmap.org/osqa.git/blobdiff_plain/493f5c31bcaf9f89774a9ab5489581ca4729d4a6..e6a05ab54f6eea95902b7e9d12858de123e39d17:/forum/templatetags/node_tags.py diff --git a/forum/templatetags/node_tags.py b/forum/templatetags/node_tags.py index 6fc19ce..5cdd3b0 100644 --- a/forum/templatetags/node_tags.py +++ b/forum/templatetags/node_tags.py @@ -221,6 +221,7 @@ def comments(post, user): }) canned_comments.append(t.render(c)) + total = len(all_comments) return { 'comments': comments, 'canned_comments': canned_comments, @@ -230,7 +231,8 @@ def comments(post, user): 'min_length': settings.FORM_MIN_COMMENT_BODY, 'show_gravatar': settings.FORM_GRAVATAR_IN_COMMENTS, 'showing': showing, - 'total': len(all_comments), + 'total': total, + 'more_comments_count' : int(total - showing), 'user': user, }