{{ 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 }}