More thorough support for comment threading.
[zzz-floof.git] / floof / templates / comments / reply.mako
index 9941433..916cc91 100644 (file)
@@ -2,7 +2,12 @@
 <%namespace name="comments" file="/comments/lib.mako" />
 
 <h1>Reply</h1>
+% if c.parent_comment:
+${h.form(url(controller='comments', action='reply_done', id=c.parent_comment_id, owner_url=c.owner_url), method='post')}
+<p>Replying to comment ${c.parent_comment_id}</p>
+% else:
 ${h.form(url(controller='comments', action='reply_done', owner_url=c.owner_url), method='post')}
+% endif
 <dl class="form">
     <dt>Comment</dt>
     <dd>${h.textarea('text')}</dd>