Prevents minor warnings.
[banana.git] / banana / templates / banana-base.tpl
CommitLineData
7027794f 1{* *}
2{* *}
3{* *}
4
e95f5b5e 5{if $withtabs}
7027794f 6<table class="cadre_a_onglet" style="width: 100%" cellpadding="0" cellspacing="0">
7 <tr>
8 <td>
9 <ul id="onglet">
10 {foreach from=$pages item=pg key=name}
11 {if $name eq $page}
12 <li class="actif">{$pg.text}</li>
13 {assign var=current_page value=$pg}
14 {else}
2f0aa8ce 15 <li>{if $name eq 'subscribe'}{link action=subscribe text=$pg.text}
7027794f 16 {elseif $name eq 'forums'}{link text=$pg.text}
17 {elseif $name eq 'thread'}{link group=$group text=$group}
18 {elseif $name eq 'message'}{link group=$group artid=$artid text=$pg.text}
19 {else}{link page=$name text=$pg.text}
20 {/if}</li>
21 {/if}
22 {/foreach}
23 </ul>
24 </td>
25 </tr>
26 <tr>
27 <td class="conteneur_tab banana">
e95f5b5e 28{else}
29<div class="banana">
30{/if}
7027794f 31 {foreach from=$errors item=error}
4f7c063d 32 <p class="error">{$error|smarty:nodefaults}</p>
7027794f 33 {/foreach}
2f0aa8ce 34 {if !$killed}
7027794f 35 {foreach from=$actions item=act}
4f7c063d 36 <p class="center" style="padding: 0; margin: 0 0 1em 0">{$act.text|smarty:nodefaults}</p>
7027794f 37 {/foreach}
38 {if $page eq 'forums'}
4e9340f5 39 {include file="banana-boxlist.inc.tpl" grouplist=$groups withstats=true withfeed=$feed_active withsubs=false}
7027794f 40 {if $newgroups|@count}
a0b2e16c 41 <p>{"Les nouveaux groupes suivants ont été créés depuis votre dernière visite"|b}</p>
4e9340f5 42 {include file="banana-boxlist.inc.tpl" grouplist=$newgroups withstats=true withsubs=false withfeed=false}
7027794f 43 {/if}
44 {elseif $page eq 'subscribe'}
4e9340f5 45 {include file="banana-boxlist.inc.tpl" grouplist=$groups withsubs=true withfeed=false withstats=false}
7027794f 46 {elseif $page eq 'thread'}
47 {include file="banana-thread.inc.tpl" withtitle=true}
48 {elseif $page eq 'message'}
49 {include file="banana-message.inc.tpl"}
57efc445 50 {if $showthread}
a4cc8ff0 51 <br />
7027794f 52 {include file="banana-thread.inc.tpl" withtitle=false}
e95f5b5e 53 {/if}
7027794f 54 {elseif $page eq 'new'}
55 {include file="banana-newmessage.inc.tpl"}
56 {elseif $page eq 'cancel'}
a0b2e16c 57 <p class="error">{"Voulez-vous vraiment annuler ce message ?"|b}</p>
7027794f 58 <form action="{url group=$group artid=$artid action=cancel}" method="post">
59 <p class="center">
a0b2e16c 60 <input type="submit" name="cancel" value="{"Annuler !"|b}" />
7027794f 61 </p>
62 </form>
63 {include file="banana-message.inc.tpl" noactions=true}
64 {elseif $current_page.template}
65 {include file=$current_page.template}
66 {/if}
2f0aa8ce 67 {/if}
e95f5b5e 68{if $withtabs}
7027794f 69 </td>
70 </tr>
71</table>
e95f5b5e 72{else}
73</div>
74{/if}
7027794f 75
598a1c53 76{* vim:set et sw=2 sts=2 ts=2 enc=utf-8: *}