--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sphinx_django/templates/comment2.html Wed Oct 27 13:59:11 2010 +0530
@@ -0,0 +1,48 @@
+{% ifequal length 1 %}
+ <a class="commenttoggle" id="toggle_{{ id }}"
+ onclick="return toggleComment('{{ id }}')"
+ href="comments: show / hide">One comment</a>
+{% else %}
+ {% if length %}
+ <a class="commenttoggle" id="toggle_{{ id }}"
+ onclick="return toggleComment('{{ id }}')"
+ href="comments: show / hide">{{ length }} comments</a>
+ {% else %}
+ <a class="commenttoggle" id="toggle_{{ id }}"
+ onclick="return toggleComment('{{ id }}')"
+ href="comments: show / hide">No comments</a>
+ <span class="comment" {% if not newid %} style="display: none;" {% endif %}>
+ <span class="comment_body">Be the first to comment on this paragraph!</span>
+ </span>
+ {% endif %}
+{% endifequal %}
+{% for c in query %}
+ <span class="{% ifequal c.id newid %}new_{% endifequal %}comment"
+ {% if not newid %} style="display: none;" {% endif %}
+ id="comment{{ c.id }}">
+ <a name="comment{{ c.id }}"/>
+ <span class="comment_header">
+ <span class="comment_id"><a href="/admin/comments/comment/{{ c.id }}/">{{ c.id }}</a></span>
+
+ </span>
+ <span class="comment_body">{{ c.comment|escape|linebreaks }}</span>
+ </span>
+{% endfor %}
+<form class="comment" id="form_{{ paragraph_id }}" action="{{ paragraph_id }}/"
+ method="post" >
+ {{ form.id }}
+ <table>
+ <tbody>
+ <tr><td align="right" valign="top">Comment<br></td>
+ <td>{{ form.comment }}</td></tr>
+ <tr><td align="right">Your name</td><td>{{ form.name }}
+ <span class="comment_help"><b>Required</b> so we can give you credit</a></span></td></tr>
+ <tr><td align="right">Your URL</td><td>{{ form.url }}
+ <span class="comment_help"><b>Optional</b> link to blog, home page,
+ <i>etc</i>.</span></td></tr>
+ <tr><td align="right">Remember you?</td><td>{{ form.remember }}</td></tr>
+ <tr><td/><td><input name="submit" type="submit"
+ value="Submit Comment"/><span class="comment_error">{{ error }}</span></td></tr>
+ </tbody>
+ </table>
+</form>