2 {% load threadedcommentstags %}
4 <h1>{{ object.summary }}</h1>
6 <tr><td>{% trans "Contact" %}:</td><td>{{ object.contact }}</td></tr>
7 <tr><td>{% trans "Character" %}:</td><td><a href="{% url influences_character_detail object.character.id %}">{{ object.character }}</a></td></tr>
8 {% if object.longterm %}
9 <tr><td>{% trans "Long term" %}:</td><td>{{ object.longterm|yesno|capfirst }}</td></tr>
12 <p>{{ object.description }}</p>
13 <script type="text/javascript">
14 function showReply(comment_id) {
15 YAHOO.util.Dom.setStyle('replyForm' + comment_id, 'display', 'block');
16 YAHOO.util.Dom.setStyle('replyLink' + comment_id, 'display', 'none');
19 function hideReply(comment_id) {
20 YAHOO.util.Dom.setStyle('replyForm' + comment_id, 'display', 'none');
21 YAHOO.util.Dom.setStyle('replyLink' + comment_id, 'display', 'block');
25 <h2>{% trans "Comments" %}</h2>
27 {% for comment in comments %}
28 <div style="margin-left: {{ comment.depth }}em;" class="comment{% if not comment.is_public %} private{% endif %}">
29 {{ comment.user }} said:<br/>
30 {% auto_transform_markup comment %}
31 <p style="display:none;" id="replyLink{{comment.id}}">
32 <a href="javascript:showReply('{{comment.id}}');">{% trans "Reply to this comment" %}</a>
34 <div id="replyForm{{comment.id}}" class="commentReplyForm">
35 <script type="text/javascript">hideReply('{{comment.id}}');</script>
36 <form method="post" action="{% url influences_influence_comment_parent object.id,comment.id %}">
37 <p><a href="javascript:hideReply('{{comment.id}}');">{% trans "Cancel reply" %}</a></p>
39 {{ comment.reply_form.as_table }}
41 <div><input type="submit" value="{% trans "Reply to this comment" %}" /></div>
47 {% trans "No comments were added yet" %}
50 <p style="display:none;" id="replyLink"><a href="javascript:showReply('')">Add comment</a></p>
52 <script type="text/javascript">hideReply('')</script>
53 <h3>{% trans "Add comment" %}</h3>
54 <form method="post" action="{% url influences_influence_comment object.id %}">
55 <p><a href="javascript:hideReply('')">Cancel comment</a></p>
57 {{ comment_form.as_table }}
59 <div><input type="submit" value="{% trans "Add comment" %}" /></div>
60 {# <input type="submit" name="preview" value="{% trans "Preview comment" %}" /></li> #}