X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fgadgets%2Fig-minifiche.tpl;h=0ce6087cf9257d19a1925fad5c68a666d778a429;hb=4018b8ab5800ac3cdeb61d9d78b68e932e553f53;hp=c501e94c3af4e1fc0889ff3d142550d0f2a6c403;hpb=f497128a7c26c25a64e05453ea479520149e2cb7;p=platal.git diff --git a/templates/gadgets/ig-minifiche.tpl b/templates/gadgets/ig-minifiche.tpl index c501e94c..0ce6087 100644 --- a/templates/gadgets/ig-minifiche.tpl +++ b/templates/gadgets/ig-minifiche.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,13 +20,13 @@ {* *} {**************************************************************************} -{if !$c.inscrit || $c.dcd}
{/if} +{if (!$c.inscrit && $smarty.session.auth ge AUTH_COOKIE) || $c.dcd}
{/if}
{if $c.sexe}•{/if} - {if !$c.dcd && $c.inscrit}{/if} + {if !$c.dcd && ($c.inscrit || $smarty.session.auth eq AUTH_PUBLIC)}{/if} {if $c.nom_usage}{$c.nom_usage} {$c.prenom}
({$c.nom}){else}{$c.nom} {$c.prenom}{/if} - {if !$c.dcd && $c.inscrit}
{/if} + {if !$c.dcd && ($c.inscrit || $smarty.session.auth eq AUTH_PUBLIC)}{/if}
{if $c.iso3166_1} @@ -43,20 +43,20 @@ {if $smarty.session.auth ge AUTH_COOKIE} {if !$c.wasinscrit && !$c.dcd} {if $show_action eq ajouter} - {* + {* *}{icon name=add title="Ajouter à la liste de mes surveillances"} {else} - {* + {* *}{icon name=cross title="Retirer de la liste de mes surveillances"} {/if} {elseif $c.wasinscrit && !$c.dcd} - {* + {* *}{icon name=vcard title="Afficher la carte de visite"} {if $show_action eq ajouter} - {* + {* *}{icon name=add title="Ajouter à mes contacts"} {else} - {* + {* *}{icon name=cross title="Retirer de mes contacts"} {/if} {/if}