Improve wiki text skin (copy style of xnet .descr class)
[platal.git] / templates / listes / members.tpl
index c88b2ae..2777da8 100644 (file)
       {if $details.sub>1}
       Tu es inscrit sur la liste.<br />
       Te désinscrire :
-      <a href='{$platal->pl_self(1)}?del=1'><img src="images/retirer.gif" alt="[me désinsiscrire]" /></a>
+      <a href='{$platal->pl_self(1)}?del=1'>{icon name=cross title="me désinsiscrire"}</a>
       {elseif $details.sub eq 1}
       Ta demande d'inscription est en cours de validation.
       {else}
       Tu n'es pas inscrit.<br />
       Demander ton inscription :
-      <a href="{$platal->pl_self(1)}?add=1"><img src="images/ajouter.gif" alt="[demander mon inscription]" /></a>
+      <a href="{$platal->pl_self(1)}?add=1">{icon name=add title="demander mon inscription"}</a>
       {/if}
     </td>
   </tr>
 {if $owners|@count}
 <table class='tinybicol' cellpadding='0' cellspacing='0'>
   {foreach from=$owners item=xs key=promo}
+  {foreach from=$xs item=x name=all}
   <tr>
-    <td class='titre'>{if $promo}{$promo}{else}non-X{/if}</td>
+    <td class='titre'>
+      {if $smarty.foreach.all.first}
+      {if $promo}{$promo}{else}non-X{/if}
+      {/if}
+    </td>
     <td>
-      {foreach from=$xs item=x}
       {if $promo}
-      <a href="profile/{$x.l}" class="popup2">{$x.n}</a><br />
+      <a href="profile/{$x.l}" class="popup2">{$x.n}</a>
       {else}
-      {$x.l}<br />
+      {$x.l}
       {/if}
-      {/foreach}
     </td>
+    {if $x.p}
+    <td class="right">
+      {$x.p}
+    </td>
+    {/if}
   </tr>
   {/foreach}
+  {/foreach}
 </table>
 {/if}
 
 {if $members|@count}
 <table class='bicol' cellpadding='0' cellspacing='0'>
   {foreach from=$members item=xs key=promo}
+  {foreach from=$xs item=x name=all}
   <tr>
-    <td class='titre'>{if $promo}{$promo}{else}non-X{/if}</td>
+    <td class='titre' style="width: 20%">
+      {if $smarty.foreach.all.first}
+      {if $promo}{$promo}{else}non-X{/if}
+      {/if}
+    </td>
     <td>
-      {foreach from=$xs item=x}
       {if $promo}
-      <a href="profile/{$x.l}" class="popup2">{$x.n}</a><br />
+      <a href="profile/{$x.l}" class="popup2">{$x.n}</a>
       {else}
-      {$x.l}<br />
+      {$x.l}
       {/if}
-      {/foreach}
     </td>
+    {if $x.p}
+    <td class="right">
+      {$x.p}
+    </td>
+    {/if}
   </tr>
   {/foreach}
+  {/foreach}
 </table>
 {/if}