-{% if comments %}
- {% for comment in comments %}
- <div style="margin-left: {{ comment.depth }}em;" class="comment">
- {{ comment.user }} said:<br/>
- {% auto_transform_markup comment %}
- <p style="display:none;" id="replyLink{{comment.id}}">
- <a href="javascript:showReply('{{comment.id}}');">{% trans "Reply to this comment" %}</a>
- </p>
- <div id="replyForm{{comment.id}}" class="commentReplyForm">
- <script type="text/javascript">hideReply('{{comment.id}}');</script>
- <form method="post" action="{% get_comment_url object comment %}">
- <p><a href="javascript:hideReply('{{comment.id}}');">{% trans "Cancel reply" %}</a></p>
- <table>
- {{ comment.get_reply_form.as_table }}
- </table>
- <div><input type="submit" value="{% trans "Reply to this comment" %}" /></div>
- </form>
- </div>
- </div>
- {% endfor %}
-{% else %}
- {% trans "No comments were added yet" %}
-{% endif %}