{% load static %} {% load i18n %} {% load tz %} {% load vote_filters %} {% load comment_render %} {% load time_filters %}
{% csrf_token %} {% if user.is_authenticated %} {% endif %}
{{ comment.vote_score }}
{% csrf_token %} {% if user.is_authenticated %} {% endif %}
{% if comment.user %} {% with comment.user.userprofile_set.first as userprofile %} {{ comment.user.username }}'s avatar {% endwith %} {% else %} Anonymous avatar {% endif %}
{% if comment.user %} @{{ comment.user.username }} {% else %} @{{ comment.anonymous_user.name }} {% endif %}
{{ comment.created_at|translated_timesince }} {% translate "ago" %} {% if comment.edited %} ({% translate "edited" %}) {% endif %} {% if comment.user %} {% translate "Registered" %} {% else %} {% translate "Anonymous" %} {% endif %}
{{ comment.body|render_comment|safe }}
{% if comment.user == user %}
{% csrf_token %}
{{ comment.body }}
{% endif %}
{% if user.is_authenticated %} {% translate "Reply" %} {% endif %} {% if comment.user == user %} {% translate "Edit" %} {% endif %} {% if comment.user == user or user.is_staff %}
{% csrf_token %}
{% endif %}
{% if user.is_authenticated %}
{% csrf_token %}
{% endif %}
{% if comment.replies.all %}
{% for reply in comment.replies.all %} {% include "weblog/_partials/post_comments.html" with comment=reply %} {% endfor %}
{% endif %}