{% load helpers %}

<figure class="comment">
    <figcaption>
        <div class="comment__header">
            <h5>
                <a href="{% url 'account-detail' comment.author.pk %}" class="comment__author">{{ comment.author }}</a> » <time>{{ comment.created_at }}</time>
            </h5>
            <div>
            {% if comment.edited %}
                <span>Edited: <time>{{ comment.updated_at }}</time></span>
            {% endif %}
            {% if request.user == comment.author %}<a href="{% url 'core:comment-update' comment.pk %}">Edit</a>{% endif %}
            </div>
        </div>
        
    </figcaption>
    <div class="comment__content">
        {{ comment.content|markdown|safe }}
    </div>
</figure>
