\r
@register.inclusion_tag('node/comments.html')\r
def comments(post, user):\r
- all_comments = post.comments.filter_state(deleted=False).order_by('-added_at')\r
+ all_comments = post.comments.filter_state(deleted=False)\\r
+ .order_by('-added_at' if settings.SHOW_LATEST_COMMENTS_FIRST else 'added_at')\r
\r
if len(all_comments) <= 5:\r
top_scorers = all_comments\r
'showing': showing,\r
'total': total,\r
'more_comments_count' : int(total - showing),\r
+ 'show_latest_comments_first' : settings.SHOW_LATEST_COMMENTS_FIRST,\r
'user': user,\r
}\r
\r