{% load typogrify_tags tango_time_tags voting_tags %} {% with object.get_latest_comments as latest_comments %} {% if latest_comments.count %}

Latest Comment{{ latest_comments.count|pluralize }}

{% with latest_comments|slice:"2" as top_comments %}
{% for comment in top_comments %}
last_seen %} class="newposts"{% endif %}> {% with comment.user as profile %}

{{ profile.display_name }}

{% endwith %} {# handle comments not on the current object but in the list #} {% if comment.content_object.pk != object.pk %} {% with comment.content_object as content_obj %}

On {% firstof content_obj.title content_obj.name content_obj %}

{% endwith %} {% endif %}
{{ comment.text_formatted|typogrify }}
{% endfor %} {# end top_comment loop #}
{% endwith %} {# remaining #} {% if latest_comments.count > 2 %}
All comments
{% endif %}{# end remaining #} {# closes columned #} {% endif %} {% endwith %}