[Catalyst-commits] r12329 - in trunk/examples/SmallBoard/root/src: . board

dhoss at dev.catalyst.perl.org dhoss at dev.catalyst.perl.org
Sun Dec 13 06:50:32 GMT 2009


Author: dhoss
Date: 2009-12-13 06:50:32 +0000 (Sun, 13 Dec 2009)
New Revision: 12329

Modified:
   trunk/examples/SmallBoard/root/src/board/view.tt2
   trunk/examples/SmallBoard/root/src/index.tt2
Log:
back to .children, count not working still

Modified: trunk/examples/SmallBoard/root/src/board/view.tt2
===================================================================
--- trunk/examples/SmallBoard/root/src/board/view.tt2	2009-12-13 06:31:35 UTC (rev 12328)
+++ trunk/examples/SmallBoard/root/src/board/view.tt2	2009-12-13 06:50:32 UTC (rev 12329)
@@ -8,7 +8,7 @@
 [% DEFAULT recurse=0 %]
 <div><a href="[%c.uri_for_action('board/view', [ reply.thread_id ]) %]">[% reply.title %]</a> - <a href="[% c.uri_for_action('board/reply', [ reply.thread_id ] ) %]">post a reply</a></div>
   [% IF recurse %]
-    [% FOR subreply IN reply.get_direct_children %]
+    [% FOR subreply IN reply.children %]
       <ul>
         <li>
          [% INCLUDE replies reply = subreply %]
@@ -19,7 +19,7 @@
 [% END %]
 
 <ul>
-[% FOR reply IN thread.get_direct_children %]
+[% FOR reply IN thread.children %]
 [% PROCESS replies recurse=1 %]
 [% END %]
 </ul>

Modified: trunk/examples/SmallBoard/root/src/index.tt2
===================================================================
--- trunk/examples/SmallBoard/root/src/index.tt2	2009-12-13 06:31:35 UTC (rev 12328)
+++ trunk/examples/SmallBoard/root/src/index.tt2	2009-12-13 06:50:32 UTC (rev 12329)
@@ -2,5 +2,5 @@
 |<a href="[% c.uri_for_action('board/create') %]">create a new thread</a> | 
 <p>Recent threads (<a href="[% c.uri_for_action('board/list') %]">view all</a>):</p>
 [% FOR thread IN threads %]
-<div><a href="[% c.uri_for_action("board/view", [thread.thread_id]) %]">[% thread.title %]</a> - [% thread.get_direct_children.count %] replies</div>
+<div><a href="[% c.uri_for_action("board/view", [thread.thread_id]) %]">[% thread.title %]</a> - [% thread.children.count %] replies</div>
 [% END %]




More information about the Catalyst-commits mailing list