Fixes vim mode line.
[banana.git] / banana / templates / banana-thread.inc.tpl
index 3729385..616ffca 100644 (file)
   </tr>
   {if $spool->roots|@count}
   {section name=threads loop=$spool->roots step=1 start=$spool->start() max=$spool->context()}
-  {assign var=id value=$spool->roots[$smarty.section.threads.index]}
-  {assign var=overview value=$spool->overview[$id]}
+  {assign var=overview value=$spool->roots[$smarty.section.threads.index]}
+  {assign var=id value=$overview->id}
   {cycle assign=class values="impair,pair"}
   <tr class="{$class} {if $overview->descunread}new{/if}">
-    <td class="date">{$spool->formatDate($overview->date)}</td>
-    <td class="subj">{$spool->formatSubject($id, $overview->subject)|smarty:nodefaults}</td>
-    <td class="from">{$spool->formatFrom($overview->from)|smarty:nodefaults}</td>
+    <td class="date">{$spool->formatDate($overview)}</td>
+    <td class="subj">{$spool->formatSubject($overview)|smarty:nodefaults}</td>
+    <td class="from">{$spool->formatFrom($overview)|smarty:nodefaults}</td>
   </tr>
   {if !$artid && $spool->nextPost($id)}
   <tr class="{$class}">
-    <td colspan="3" class="thread_tree">{$spool->buildTree($id)|smarty:nodefaults}</td>
+    <td colspan="3" class="thread_tree">{$spool->getTree($id)|smarty:nodefaults}</td>
   </tr>
   {/if}
   {/section}
   </tr>
   {/if}
 </table>
+{$smarty.capture.pages|smarty:nodefaults}
 {if $showboxlist}
-{include file="banana-boxlist.inc.tpl" grouplist=$groups withstats=true}
+<br />
+{include file="banana-boxlist.inc.tpl" grouplist=$groups withstats=true withsubs=false withfeed=false}
 {/if}
-{$smarty.capture.pages|smarty:nodefaults}
 
-{* vim:set et sw=2 sts=2 ts=2 enc=utf-8: *}
+{* vim:set et sw=2 sts=2 ts=2 fenc=utf-8: *}