%def name="comment_block(comments)">
${len(comments)} comment${'' if len(comments) == 1 else 's'}
View all
Reply
${comment_thread(comments)}
%def>
<%def name="comment_thread(comments)">
<%! from floof.model.comments import indent_comments %>\
% for comment in indent_comments(comments):
${single_comment(comment)}
% endfor
%def>
<%def name="single_comment(comment)">
% if hasattr(comment, 'indent'):
${comment.text}