3
|
1 |
{% ifequal length 1 %}
|
|
2 |
<a class="commenttoggle" id="toggle_{{ id }}"
|
|
3 |
onclick="return toggleComment('{{ id }}')"
|
|
4 |
href="comments: show / hide">One comment</a>
|
|
5 |
{% else %}
|
|
6 |
{% if length %}
|
|
7 |
<a class="commenttoggle" id="toggle_{{ id }}"
|
|
8 |
onclick="return toggleComment('{{ id }}')"
|
|
9 |
href="comments: show / hide">{{ length }} comments</a>
|
|
10 |
{% else %}
|
|
11 |
<a class="commenttoggle" id="toggle_{{ id }}"
|
|
12 |
onclick="return toggleComment('{{ id }}')"
|
|
13 |
href="comments: show / hide">No comments</a>
|
|
14 |
<span class="comment" {% if not newid %} style="display: none;" {% endif %}>
|
|
15 |
<span class="comment_body">Be the first to comment on this paragraph!</span>
|
|
16 |
</span>
|
|
17 |
{% endif %}
|
|
18 |
{% endifequal %}
|
|
19 |
{% for c in query %}
|
|
20 |
<span class="{% ifequal c.id newid %}new_{% endifequal %}comment"
|
|
21 |
{% if not newid %} style="display: none;" {% endif %}
|
|
22 |
id="comment{{ c.id }}">
|
|
23 |
<a name="comment{{ c.id }}"/>
|
|
24 |
<span class="comment_header">
|
|
25 |
<span class="comment_id"><a href="/admin/comments/comment/{{ c.id }}/">{{ c.id }}</a></span>
|
|
26 |
|
|
27 |
</span>
|
|
28 |
<span class="comment_body">{{ c.comment|escape|linebreaks }}</span>
|
|
29 |
</span>
|
|
30 |
{% endfor %}
|
|
31 |
<form class="comment" id="form_{{ paragraph_id }}" action="{{ paragraph_id }}/"
|
|
32 |
method="post" >
|
|
33 |
{{ form.id }}
|
|
34 |
<table>
|
|
35 |
<tbody>
|
|
36 |
<tr><td align="right" valign="top">Comment<br></td>
|
|
37 |
<td>{{ form.comment }}</td></tr>
|
|
38 |
<tr><td align="right">Your name</td><td>{{ form.name }}
|
|
39 |
<span class="comment_help"><b>Required</b> so we can give you credit</a></span></td></tr>
|
|
40 |
<tr><td align="right">Your URL</td><td>{{ form.url }}
|
|
41 |
<span class="comment_help"><b>Optional</b> link to blog, home page,
|
|
42 |
<i>etc</i>.</span></td></tr>
|
|
43 |
<tr><td align="right">Remember you?</td><td>{{ form.remember }}</td></tr>
|
|
44 |
<tr><td/><td><input name="submit" type="submit"
|
|
45 |
value="Submit Comment"/><span class="comment_error">{{ error }}</span></td></tr>
|
|
46 |
</tbody>
|
|
47 |
</table>
|
|
48 |
</form>
|