1 {% load extra_tags %}
\r
4 <div class="clear"></div>
\r
5 <div id="comment-{{ post.id }}-form-container" class="comment-form-container">
\r
7 <form id="comment-{{ post.id }}-form" method="post" action="{% url comment id=post.id %}" accept-charset="utf-8">
\r
9 <div class="comment-form-widgets-container">
\r
10 <textarea name="comment" class="commentBox" id="comment"></textarea>
\r
11 <div class="comment-form-buttons">
\r
12 <span id="comment-{{ post.id }}-chars-left" class="comment-chars-left">
\r
13 <span class="comments-char-left-count">{{ min_length }}|{{ max_length }}</span>
\r
14 <span class="comments-chars-togo-msg">{% trans "characters needed" %}</span>
\r
15 <span class="comments-chars-left-msg">{% trans "characters left" %}</span>
\r
17 <input type="submit" class="comment-submit" value="{% trans " comment" %}" />
\r
18 <input type="submit" class="comment-cancel" value="{% trans " cancel" %}" />
\r
20 <div class="clear"></div>
\r
21 {% if user.can_use_canned_comments %}
\r
22 <div class="canned_comment">
\r
23 <span id="post-{{ post.id }}-menu" class="context-menu">
\r
24 <span id="post-{{ post.id }}-menu-trigger" class="action-link context-menu-trigger">{% trans "Use canned comment" %}</span>
\r
25 <ul id="post-{{ post.id }}-menu-dropdown" class="context-menu-dropdown" style="width: 275px;">
\r
26 {% for canned_comment in canned_comments %}
\r
28 <a style="white-space: pre-wrap;" href="javascript:void(0);" onclick="canned_comment({{ post.id }}, jQuery(this).text())">{{ canned_comment }}</a>
\r
36 <script type="text/html" class="new-comment-skeleton" id="new-comment-skeleton-{{ post.id }}">
\r
37 <div class="comment{% if not comment.top_scorer %} not_top_scorer{% endif %}" id="comment-%ID%">
\r
38 <div id="post-%ID%-score" class="comment-score"></div>
\r
39 <div class="comment-text">%COMMENT%</div>
\r
40 <div class="comment-info" id="comment-%ID%-info">
\r
41 <a id="comment-%ID%-edit" href="%EDIT_URL%" title="{% trans "Edit comment" %}"
\r
42 class="comment-edit" rel="nofollow"> </a>
\r
43 <a id="comment-%ID%-delete" href="%DELETE_URL%" title="{% trans "Delete comment" %}"
\r
44 class="ajax-command comment-delete confirm" rel="nofollow"> </a>
\r
45 <a rel="nofollow" id="comment-%ID%-convert" style="display:none;" href="%CONVERT_URL%" title="{% trans "Convert comment to answer" %}"
\r
46 class="ajax-command comment-convert confirm" rel="nofollow"> </a>
\r
48 <span class="comment-age">({% trans "just now" %})</span>
\r
49 <a class="comment-user" href="%PROFILE_URL%">%USERNAME%</a>
\r
50 {% if user.is_authenticated %}
\r
51 {% if show_gravatar %}{% gravatar user 18 %}{% endif %}
\r
59 <div class="clear"></div>
\r
61 <div class="comments-container" id="comments-container-{{ post.id }}">
\r
62 {% for comment in comments %}
\r
63 <a name="{{ comment.id }}"></a>
\r
64 <div class="comment{% if not comment.top_scorer %} not_top_scorer{% endif %}" id="comment-{{comment.id}}">
\r
65 <div id="post-{{ comment.id }}-score" class="comment-score">{% if comment.score %}{{ comment.score }}{% endif %}</div>
\r
66 <div class="comment-text">{{ comment.comment }}</div>
\r
67 <div class="comment-info" id="comment-{{comment.id}}-info">
\r
68 {% if comment.can_like %}
\r
69 <a id="post-{{ comment.id }}-upvote" href="{% url like_comment id=comment.id %}"
\r
70 title="{% trans "I like this comment (click again to cancel)" %}" class="ajax-command comment-like{% if comment.likes %} on{% endif %}"
\r
71 rel="nofollow"> </a>
\r
73 {% if comment.can_edit %}
\r
74 <a id="comment-{{ comment.id }}-edit" href="{% url node_markdown id=comment.id %}" title="{% trans "Edit comment" %}"
\r
75 class="comment-edit" rel="nofollow"> </a>
\r
77 {% if comment.can_delete %}
\r
78 <a id="comment-{{ comment.id }}-delete" href="{% url delete_comment id=comment.id %}" title="{% trans "Delete comment" %}"
\r
79 class="ajax-command comment-delete confirm" rel="nofollow"> </a>
\r
81 {% if comment.can_convert %}
\r
82 <a rel="nofollow" id="comment-{{ comment.id }}-convert" href="{% url convert_comment id=comment.id %}" title="{% trans "Convert comment to answer" %}"
\r
83 class="ajax-command comment-convert confirm" rel="nofollow"> </a>
\r
84 <a rel="nofollow" id="comment-{{ comment.id }}-convert-to-question" href="{% url convert_to_question id=comment.id %}?node_type=comment" title="{% trans "Convert comment to question" %}"
\r
85 class="comment-convert-to-question" rel="nofollow"> </a>
\r
89 <span class="comment-age">({% diff_date comment.added_at %})</span>
\r
90 <a class="comment-user userinfo" href="{{comment.user.get_profile_url}}">{{comment.user.decorated_name}}</a>
\r
91 {% if show_gravatar %}{% gravatar comment.user 18 %}{% endif %}
\r
96 <div id="comment-tools-{{ post.id }}" class="comment-tools">
\r
97 {% ifnotequal showing total %}
\r
98 <span class="comments-showing">
\r
99 {% blocktrans %}showing {{ showing }} of {{ total }}{% endblocktrans %}
\r
101 <a href="#" class="show-all-comments-link">{% trans "show all" %}</a>
\r
102 {% endifnotequal %}
\r
103 {% if can_comment %}
\r
104 <a href="#" class="add-comment-link">{% trans "add new comment" %}</a>
\r