More space.
[banana.git] / banana / templates / banana-base.tpl
index d1f9cc6..dd6ecb7 100644 (file)
@@ -2,6 +2,7 @@
 {* *}
 {* *}
 
+{if $withtabs}
 <table class="cadre_a_onglet" style="width: 100%" cellpadding="0" cellspacing="0">
   <tr>
     <td>
   </tr>
   <tr>
     <td class="conteneur_tab banana">
+{else}
+<div class="banana">
+{/if}
       {foreach from=$errors item=error}
-      <p class="error">{$error}</p>
+      <p class="error">{$error|smarty:nodefaults}</p>
       {/foreach}
       {if !$killed}
       {foreach from=$actions item=act}
-      <p class="center" style="padding: 0; margin: 0 0 1em 0">{$act.text}</p>
+      <p class="center" style="padding: 0; margin: 0 0 1em 0">{$act.text|smarty:nodefaults}</p>
       {/foreach}
       {if $page eq 'forums'}
-        {include file="banana-boxlist.inc.tpl" grouplist=$groups withstats=true}
+        {include file="banana-boxlist.inc.tpl" grouplist=$groups withstats=true withfeed=$feed_active}
         {if $newgroups|@count}
         <p>{"Les nouveaux groupes suivants ont été créés depuis votre dernière visite"|b}</p>
         {include file="banana-boxlist.inc.tpl" grouplist=$newgroups withstats=true}
         {include file="banana-thread.inc.tpl" withtitle=true}
       {elseif $page eq 'message'}
         {include file="banana-message.inc.tpl"}
+        {if $showthread}
+        <br />
         {include file="banana-thread.inc.tpl" withtitle=false}
+        {/if}
       {elseif $page eq 'new'}
         {include file="banana-newmessage.inc.tpl"}
       {elseif $page eq 'cancel'}
         {include file=$current_page.template}
       {/if}
       {/if}
+{if $withtabs}
     </td>
   </tr>
 </table>
+{else}
+</div>
+{/if}
 
 {* vim:set et sw=2 sts=2 ts=2 enc=utf-8: *}