review
authorJoey Hess <joey@kitenet.net>
Mon, 17 May 2010 21:13:53 +0000 (17:13 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 17 May 2010 21:13:53 +0000 (17:13 -0400)
doc/todo/allow_displaying_number_of_comments.mdwn

index 8e479bc8595beea0d7a2823adb77e682f34bc5cb..7e880221030d5a231f6d2e69da4cd67e1fa5d0ba 100644 (file)
@@ -5,5 +5,23 @@ bits of) a more usual webforum.
 Please review... and pull :)
 
 -- [[intrigeri]]
+> How is having this variable for showing a count of the comments 
+> better (or more forum-ish) than the COMMENTSLINK variable which
+> includes a count and a link to the comments, and is already displayed
+> in inlinepage.tmpl?
+> 
+> `num_comments` will never return undef.
+> 
+> I see no need to add a second pagetemplate hook.
+> The existing one can be added to. Probably inside its `if ($shown)`
+> block.
+> 
+> It may also be a good idea to either combine the calls to `num_comments`
+> used for this and for the commentslink, 
+> or to memoize it. I'm thinking generally memoizing it may be a good idea
+> since the comments for a page will typically be counted twice when it's
+> inlined.
+> --[[Joey]] 
 
 [[patch]]