X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/2037ab1d9057d34ccf0457e8fb5c7c34b2d89083..7c20a2661d532fe1e338f0f0dfb9fe42113ab103:/floof/templates/comments/lib.mako diff --git a/floof/templates/comments/lib.mako b/floof/templates/comments/lib.mako new file mode 100644 index 0000000..e822a17 --- /dev/null +++ b/floof/templates/comments/lib.mako @@ -0,0 +1,34 @@ +<%def name="comment_block(comments)"> +

${len(comments)} comments

+

View all

+

Reply

+${comment_thread(comments)} + + +<%def name="comment_thread(comments)"> +<%! from floof.model.comments import indent_comments %>\ +% for comment in indent_comments(comments): +${single_comment(comment)} +% endfor + + +<%def name="single_comment(comment)"> +% if hasattr(comment, 'indent'): +
+% else: +
+% endif +
+
${comment.user.name}
+
${comment.time}
+ +
+

${comment.text}

+
+