X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/fca6f64bc81a02c61ba45a13de25f3da2e7630b3..dce049a4e2dd5fee51fe9d8ebafd4c9401c0c5dd:/floof/templates/comments/lib.mako diff --git a/floof/templates/comments/lib.mako b/floof/templates/comments/lib.mako index df5cbf6..0c8ebfb 100644 --- a/floof/templates/comments/lib.mako +++ b/floof/templates/comments/lib.mako @@ -1,15 +1,24 @@ <%def name="comment_block(comments)"> +

${len(comments)} comments

View all

Reply

${comment_thread(comments)} <%def name="comment_thread(comments)"> -% for comment in comments: -
-
${comment.user.name}
-
${comment.time}
+<%! from floof.model.comments import indent_comments %>\ +% for comment in indent_comments(comments): +${single_comment(comment)} +% endfor + + +<%def name="single_comment(comment)"> +
+
+
${comment.user.name}
+
${comment.time}
+ +

${comment.text}

-% endfor