--- a/ForgeTracker/forgetracker/templates/lib.html
+++ b/ForgeTracker/forgetracker/templates/lib.html
@@ -3,7 +3,7 @@
xmlns:xi="http://www.w3.org/2001/XInclude">
<py:def function="display_comment(comment)">
- <div id="comment-${comment._id}">
+ <div id="comment-${comment.slug}">
<div class="forge_comment_body">
<div class="user_info">
<img src="/images/error.png" alt="icon" width="50" height="50"/>
@@ -11,14 +11,14 @@
${comment.author().display_name}
</div>
<a py:if="c.user._id and comment.author_id==c.user._id"
- href="comments/$comment._id/delete">[X]</a>
+ href="comments/$comment.slug/delete">[X]</a>
<br/>
${Markup(g.markdown.convert(comment.text))}
${comment.posted_ago}
<div class="reply title-pane closed">
<a class="title" href="#">Reply</a>
<div class="content">
- <form method="post" action="comments/$comment._id/reply">
+ <form method="post" action="comments/$comment.slug/reply">
<textarea rows="4" cols="60" name="text"></textarea><br/>
<input type="submit" value="Save Comment"/>
</form>