projects
/
matthijs
/
projects
/
xerxes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move quote_reply out of the influence_detail function.
[matthijs/projects/xerxes.git]
/
templates
/
influences
/
influence_detail_block.html
diff --git
a/templates/influences/influence_detail_block.html
b/templates/influences/influence_detail_block.html
index 7dc3cf02ce25b859fe5a385ce338d958b7ff014b..d60ac14c1a4a80eaac2c0393eded37dfa213134b 100644
(file)
--- a/
templates/influences/influence_detail_block.html
+++ b/
templates/influences/influence_detail_block.html
@@
-25,7
+25,7
@@
<h2>{% trans "Comments" %}</h2>
{% if comments %}
{% for comment in comments %}
<h2>{% trans "Comments" %}</h2>
{% if comments %}
{% for comment in comments %}
- <div style="margin-left: {{ comment.depth }}em;" class="comment">
+ <div style="margin-left: {{ comment.depth }}em;" class="comment
{% if not comment.is_public %} private{% endif %}
">
{{ comment.user }} said:<br/>
{% auto_transform_markup comment %}
<p style="display:none;" id="replyLink{{comment.id}}">
{{ comment.user }} said:<br/>
{% auto_transform_markup comment %}
<p style="display:none;" id="replyLink{{comment.id}}">
@@
-33,10
+33,10
@@
</p>
<div id="replyForm{{comment.id}}" class="commentReplyForm">
<script type="text/javascript">hideReply('{{comment.id}}');</script>
</p>
<div id="replyForm{{comment.id}}" class="commentReplyForm">
<script type="text/javascript">hideReply('{{comment.id}}');</script>
- <form method="post" action="{%
get_comment_url object comment
%}">
+ <form method="post" action="{%
url influences_influence_comment_parent object.id,comment.id
%}">
<p><a href="javascript:hideReply('{{comment.id}}');">{% trans "Cancel reply" %}</a></p>
<table>
<p><a href="javascript:hideReply('{{comment.id}}');">{% trans "Cancel reply" %}</a></p>
<table>
- {{ comment.
get_
reply_form.as_table }}
+ {{ comment.reply_form.as_table }}
</table>
<div><input type="submit" value="{% trans "Reply to this comment" %}" /></div>
</form>
</table>
<div><input type="submit" value="{% trans "Reply to this comment" %}" /></div>
</form>
@@
-51,7
+51,7
@@
<div id="replyForm">
<script type="text/javascript">hideReply('')</script>
<h3>{% trans "Add comment" %}</h3>
<div id="replyForm">
<script type="text/javascript">hideReply('')</script>
<h3>{% trans "Add comment" %}</h3>
-<form method="post" action="{%
get_comment_url object
%}">
+<form method="post" action="{%
url influences_influence_comment object.id
%}">
<p><a href="javascript:hideReply('')">Cancel comment</a></p>
<table>
{{ comment_form.as_table }}
<p><a href="javascript:hideReply('')">Cancel comment</a></p>
<table>
{{ comment_form.as_table }}