X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fminifiche.tpl;h=66ecc64753c23083e10dce19e964d64aed47c72a;hb=47f38ac54f43a1ef97282d2d6c288679706406a2;hp=b1ff3561bc9c4a76502cc25ad513fac3138e7a50;hpb=7b9c876dacf56fe3816b0faa6599ed46ce968dd8;p=platal.git diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index b1ff356..66ecc64 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -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 *} @@ -20,24 +20,23 @@ {* *} {**************************************************************************} - -{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} {$c.nat}  {/if} - (X {$c.promo}{if $c.app0text}, {applis_fmt type=$c.app0type text=$c.app0text url=$c.app0url} - {/if}{if $c.app1text}, {applis_fmt type=$c.app1type text=$c.app1text url=$c.app1url}{/if}) - {if $c.dcd}décédé{if $c.sexe}e{/if} le {$c.deces|date_format}{/if} + (X {$c.promo}{if $c.app0text}, {applis_fmt type=$c.app0type text=$c.app0text url=$c.app0url}{* + *}{/if}{if $c.app1text}, {applis_fmt type=$c.app1type text=$c.app1text url=$c.app1url}{/if}) + {if $c.dcd}décédé{if $c.sexe}e{/if} le {$c.deces|date_format}{/if} {if $smarty.session.auth ge AUTH_COOKIE} {if !$c.dcd && !$c.wasinscrit} clique ici si tu connais son adresse email ! @@ -51,7 +50,7 @@ {if !$c.wasinscrit && !$c.dcd} {if $show_action eq ajouter} {* - *}{icon name=add title="Ajouter à la liste de mes surveillances"} + *}{icon name=add title="Ajouter à la liste de mes surveillances"} {else} {* *}{icon name=cross title="Retirer de la liste de mes surveillances"} @@ -64,7 +63,7 @@ *}{icon name=vcard title="Afficher la carte de visite"} {if $show_action eq ajouter} {* - *}{icon name=add title="Ajouter à mes contacts"} + *}{icon name=add title="Ajouter à mes contacts"} {else} {* *}{icon name=cross title="Retirer de mes contacts"} @@ -73,7 +72,7 @@ {/if} {/if} - {if $smarty.session.perms eq admin} + {if hasPerm('admin')} [{if !$c.wasinscrit && !$c.dcd} {* *}{icon name=email title="marketter user"} @@ -98,7 +97,7 @@ {/if} {if $c.countrytxt || $c.city} - Géographie: + Géographie: {$c.city}{if $c.city && $c.countrytxt}, {/if}{$c.countrytxt} {/if} @@ -126,9 +125,9 @@ {if !$c.dcd && !$c.actif && $c.wasinscrit && $smarty.session.auth ge AUTH_COOKIE} - Ce camarade n'a plus d'adresse redirection valide. - - Si tu en connais une, n'hésite pas à nous la transmettre + Ce camarade n'a plus d'adresse de redirection valide. + + Si tu en connais une, n'hésite pas à nous la transmettre @@ -139,6 +138,6 @@
-{if !$c.inscrit || $c.dcd}
{/if} +{if (!$c.inscrit && $smarty.session.auth ge AUTH_COOKIE) || $c.dcd}
{/if} -{* vim:set et sw=2 sts=2 sws=2: *} +{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}