-<div id="comment-{{ post.id }}-form-container" class="comment-form-container">\r
- {% if can_comment %}\r
- <form id="comment-{{ post.id }}-form" method="post" action="{% url comment id=post.id %}" accept-charset="utf-8">\r
- <div class="comment-form-widgets-container">\r
- <textarea name="comment" class="commentBox"></textarea>\r
- <div class="comment-form-buttons">\r
- <span id="comment-{{ post.id }}-chars-left" class="comment-chars-left">\r
- <span class="comments-char-left-count">{{ min_length }}|{{ max_length }}</span>\r
- <span class="comments-chars-togo-msg">{% trans "characters needed" %}</span>\r
- <span class="comments-chars-left-msg">{% trans "characters left" %}</span>\r
- </span>\r
- <input type="submit" class="comment-submit" value="{% trans " comment" %}" onclick="window.removeEventListener('beforeunload', beforeUnload, true)" />\r
- <input type="submit" class="comment-cancel" value="{% trans " cancel" %}" />\r
- </div>\r
- </div>\r
- <script type="text/html" class="new-comment-skeleton" id="new-comment-skeleton-{{ post.id }}">\r
- <div class="comment{% if not comment.top_scorer %} not_top_scorer{% endif %}" id="comment-%ID%">\r
- <div id="post-%ID%-score" class="comment-score"></div>\r
- <div class="comment-text">%COMMENT%</div>\r
- <div class="comment-info" id="comment-{{comment.id}}-info">\r
- <a id="comment-%ID%-edit" href="%EDIT_URL%"\r
- class="comment-edit" rel="nofollow"> </a>\r
- <a id="comment-%ID%-delete" href="%DELETE_URL%"\r
- class="ajax-command comment-delete" rel="nofollow"> </a>\r
- <span class="comment-age">({% trans "just now" %})</span>\r
- <a class="comment-user" href="%PROFILE_URL%">%USERNAME%</a>\r
- {% if user.is_authenticated %}\r
- {% if show_gravatar %}{% gravatar user 18 %}{% endif %}\r
- {% endif %}\r
- </div>\r
- </div>\r
- </script>\r
- </form>\r
- {% endif %}\r
-</div>\r
-
\ No newline at end of file