X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;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}
- {foreach from=$profile->nationalities() item=nat}
-
![{$nat} {$nat}](images/flags/{$nat}.gif)
+ {foreach from=$profile->nationalities() item=country key=code}
+
![{$country} {$code}](images/flags/{$code}.gif)
{/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}
{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}
- Page web : |
- {$web} |
+ {$web.name} : |
+ {$web.address} |
{/if}
{if $address && $address->country}
@@ -154,7 +156,7 @@
{"Ce"|sex:"Cette":$profile} camarade n'est pas {"inscrit"|sex:"inscrite":$profile}.
+ n'hésite pas à nous la transmettre !
|
{elseif $user->state neq 'disabled' && $user->lost}