{% load inlinetrans comment_tags datefilters i18n %}
<div id="comment-{{ comment.id }}" class="comment">
    <div class="comment-delete-message" style="display: none;">{% trans "Are you sure you want to delete this comment?" %}</div>
    <div class="comment-discard-message" style="display: none;">{% trans "Are you sure you want to discard this comment form?" %}</div>
    <h3 {% if censured %}class="censured"{% endif %}>{% if comment.website %}
        <a href="{{ comment.website }}" class="commentName">{{ comment.name }}</a> {% inline_trans "said" %}:
    {% else %}{% if comment.mail %}
        <a href="{{ comment.mail }}" class="commentName">{{ comment.name }}</a> {% inline_trans "said" %}:
    {% else %}{% if comment.name %}
        {{ comment.name }} {% inline_trans "said" %}:
    {% endif %}{% endif %}{% endif %}
        <a class="commentLink" href="#comment-{{ comment.id }}">{% inline_trans "link to here" %}</a>
    </h3>
    {% if comment.name %}
    <div class="commentinfo {% if censured %}censured{% endif %}">
        {% inline_trans "Send by" %} {{ comment.name }} {% inline_trans "on" %} {{ comment.date_submitted|transdate }} {{ comment.date_submitted|date:"H:i:s" }}
    </div>
    {% endif %}
    <div class="commentBody {% if censured %}censured{% endif %}">
        {{ comment.comment|striptags|urlize|linebreaks }}
    </div>
    {% if show_links %}
    <div class="actions {% if censured %}censured{% else %}public{% endif %}">
        <a class="addReply" href="{% url comment_add_parent content_type_id,content.id,comment.id %}">{% inline_trans "Reply" %}</a>
        <a class="hideReply" href="#" style="display:none">{% inline_trans "Hide Reply" %}</a>
        {% if moderation %} 
              <a class="publishComment"
                 href="{% url comment_change_visibity comment.id %}">{% inline_trans "Publish" %}</a>
              <a class="censureComment"
                 href="{% url comment_change_visibity comment.id %}">{% inline_trans "Censure" %}</a>
              <a class="deleteComment"
                 href="{% url comment_delete comment.id %}">{% inline_trans "Delete" %}</a>
              <a class="editComment"
                 href="{% comment_admin_link comment %}">{% inline_trans "Edit" %}</a>

        {% endif %}
    </div>
    {% endif %}
    <div class="commentform"></div>
    {% if show_children %}
        {% for childcomment in children_comments %}
            {% content_comment content childcomment show_children show_links %}
        {% endfor %}
    {% endif %}
    <div class="commentresults" style="display:none"></div>
</div>
