Update minifiches for new Profile/Account
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 22 Mar 2010 13:03:43 +0000 (14:03 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 22 Mar 2010 13:08:01 +0000 (14:08 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
templates/include/minifiche.tpl

index 33add8f..799c602 100644 (file)
     {assign var=address value=$profile->getMainAddress()}
     {assign var=web     value=$profile->getWebSite()}
     {assign var=job     value=$profile->getMainJob()}
-    {if $web || $profile->mobile || $address.country || $job || (!$dead && !$registered)}
+    {if $web || $profile->mobile || $address->country || $job || (!$dead && !$registered)}
     <table cellspacing="0" cellpadding="0">
       {if $web}
       <tr>
         <td class="rt"><a href="{$web}">{$web}</a></td>
       </tr>
       {/if}
-      {if $address.country && !$c.dcd}
+      {if $address->country && !$c.dcd}
       <tr>
         <td class="lt">Géographie&nbsp;:</td>
-        <td class="rt">{if $address.locality}{$address.locality}, {/if}{$address.country}</td>
+        <td class="rt">{if $address->locality}{$address->locality}, {/if}{$address->country}</td>
       </tr>
       {/if}
       {if $profile->mobile && !$dead}