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