Mark strings as translatable.
[matthijs/projects/xerxes.git] / templates / influences / influence_detail_block.html
1 {% load i18n %}
2 {% load threadedcommentstags %}
3
4 <h1>{{ object.summary }}</h1>
5 <table>
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>
10 {% endif %}
11 </table>
12 <p>{{ object.description }}</p>
13 <script>
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');
17         }
18
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');
22         }
23 </script>
24                 
25 <h2>{% trans "Comments" %}</h2>
26 {% if comments %}
27     {% for comment in comments %}
28         <div style="margin-left: {{ comment.depth }}em;" class="comment">
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>
33                         </p>
34                         <div id="replyForm{{comment.id}}" class="commentReplyForm">
35                                 <script>hideReply('{{comment.id}}');</script>
36                                 <form method="POST" action="{% get_comment_url object comment %}">
37                                         <p><a href="javascript:hideReply('{{comment.id}}');">{% trans "Cancel reply" %}</a></p>
38                                         <ul>
39                                                 <table>
40                                                 {{ comment.get_reply_form.as_table }}
41                                                 </table>
42                                                 <input type="submit" value="{% trans "Reply to this comment" %}" /></li>
43                                         </ul>
44                                 </form>
45                         </div>
46         </div>
47     {% endfor %}
48 {% else %}
49     {% trans "No comments were added yet" %}
50 {% endif %}
51
52 <p style="display:none;" id="replyLink"><a href="javascript:showReply('')">Add comment</a></p>
53 <div id="replyForm">
54 <script>hideReply('')</script>
55 <h3>{% trans "Add comment" %}<h3>
56 <form method="POST" action="{% get_comment_url object %}">
57         <p><a href="javascript:hideReply('')">Cancel comment</a></p>
58     <ul>
59         <table>
60         {{ comment_form.as_table }}
61         </table>
62         <input type="submit" value="{% trans "Add comment" %}" /></li>
63         {# <input type="submit" name="preview" value="{% trans "Preview comment" %}" /></li> #}
64     </ul>
65 </form>
66 </div>