X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fminifiche.tpl;h=0daa537eaf6fd055a6f7934d4c555868c373cd01;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=698a549b16dcc018f8b55dae6a39ad3e056c64a5;hpb=eff6ac2dab57f45bf0877e90c3ba3d039822e2b7;p=platal.git diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index 698a549..0daa537 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -55,25 +55,26 @@
{if $profile->isFemale()}•{/if} {if !$dead && $registered}{/if} - {$profile->full_name} + {$profile->directory_name} {if !$dead && $registered}{/if}
- {foreach from=$profile->nationalities() item=nat} - {$nat}  + {foreach from=$profile->nationalities() item=country key=code} + {$code}  {/foreach} {$profile->promo()}{* - *}{foreach from=$profile->getExtraEducations(4) item=edu}, {display_education edu=$edu profile=$profile}{/foreach}{* + *}{foreach from=$profile->getExtraEducations(4) item=edu}, {display_education edu=$edu profile=$profile full=false}{/foreach}{* *}{if $dead}, {"décédé"|sex:"décédée":$profile} le {$profile->deathdate|date_format}{/if}
{if $withAuth}
+ {if $registered || (!$dead && $hasowner)}
{if !$registered && !$dead && $hasowner} - {if $show_action && ($show_action eq 'ajouter')} + {if !$smarty.session.user->isWatchedUser($profile)} {* *}{icon name=add title="Ajouter à la liste de mes surveillances"} {else} @@ -98,6 +99,7 @@ {/if} {/if}
+ {/if} {if hasPerm('admin') && $hasowner}
@@ -119,12 +121,12 @@ {assign var=address value=$profile->getMainAddress()} {assign var=web value=$profile->getWebSite()} {assign var=job value=$profile->getMainJob()} - {if $web || $profile->mobile || ($address && $address->country) || $job || !$registered} + {if $web || $profile->mobile || ($address && $address->country) || $job || !$registered || $user->lost} {if $web} - - + + {/if} {if $address && $address->country} @@ -154,7 +156,7 @@ {elseif $user->state neq 'disabled' && $user->lost}
Page web :{$web}{$web.name} :{$web.address}
{"Ce"|sex:"Cette":$profile} camarade n'est pas {"inscrit"|sex:"inscrite":$profile}. Si tu connais son adresse email, - n'hésite pas à nous la transmettre ! + n'hésite pas à nous la transmettre !