{% load cache pagination_tags jmbo_template_tags foundry_tags i18n %}
{% with request.REQUEST.paginate_by|default:20|add:0 as paginate_by %} {% with request.REQUEST.paginate_offset|default:0|add:0 as paginate_offset %}
{% autopaginate comment_list paginate_by paginate_offset %}
{% for comment in comment_list %} {% get_can_report_comment comment as 'can_report_comment' %} {% jmbocache 3600 'comment-list-comment' comment.id can_report_comment request.user.id %}
{% if comment.creator %} {% endif %}
{% with request.POST.next|default:request.META.PATH_INFO as next %} {% trans "Reply" %} {% endwith %}
{% if can_report_comment %} {% with request.POST.next|default:request.META.PATH_INFO as next %} {% trans "Report" %} {% endwith %} {% else %} {% if request.user.is_authenticated %} {% trans "Reported" %} {% endif %} {% endif %}
{{ comment.user.username|default:comment.name }}: {{ comment.comment|urlize }}
{% endjmbocache %} {% endfor %}
{% paginate %}
{% endwith %} {% endwith %}