Can choose the color of banana tree branches.
[platal.git] / templates / banana / index.tpl
index 6ba0abb..e865ee2 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -24,7 +24,6 @@
 {$banana|smarty:nodefaults}
 {else}
 
-{if !$smarty.post.action}
 <p class="normal">
   Tu peux régler quelques paramètres qui apparaîtront sur les messages lorsque
   tu posteras sur les forums. Cela ne te permettra pas d'être anonyme, puisque
@@ -39,6 +38,7 @@
 </p>
 
 <form action="banana/profile" method="post">
+  {xsrf_token_field}
   <table class="bicol" cellpadding="3" cellspacing="0" summary="Configuration de Banana">
     <tr>
       <th colspan="2">Profil Banana</th>
       </td>
     </tr>
     <tr class="pair">
+      <td class="titre">Aspect de l'arborescence</td>
+      <td>
+        {foreach from=$colors item=color}
+          <label>non-lu <input type="radio" name="unread" value="{$color}" {if $unread eq $color}checked="checked"{/if} /></label>
+          <img src="images/banana/m2{$color}.gif" alt="{$color}" />
+          <label><input type="radio" name="read" value="{$color}" {if $read eq $color}checked="checked"{/if} /> lu</label>
+          <br />
+        {/foreach}
+      </td>
+    </tr>
+    <tr class="pair">
       <td class="titre">Mise à jour des messages non lus</td>
       <td>
         <input type="radio" name="bananaupdate" value="1"
   </table>
   <div class="center"><input type="submit" name="action" value="Enregistrer" /></div>
 </form>
-{else}
-<p class="normal">
-  Ton profil est enregistré !!!
-</p>
-{/if}
 {/if}
 {if !$it_is_xnet}
 <p class="smaller">
   {icon name="lightbulb" title="Astuce"}Astuce&nbsp;:
-  Tu peux également consulter les fora en utilisant un client NNTP tel que
+  tu peux également consulter les forums en utilisant un client NNTP tel que
   Outlook Express ou Thunderbird.<br />N'hésite pas à <a href="password/smtp?doc=nntp">
   consulter la documentation et à activer ton accès</a> pour utiliser ce service.
 </p>