X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fminifiche.tpl;h=16dac4f523414e1f2278a5b2b397183375d16c5a;hb=b9d254dfbec04814a5301ee1f49a3793cf763716;hp=698a549b16dcc018f8b55dae6a39ad3e056c64a5;hpb=93d42b4fcc6f055a428c9b63e386ac62c918d08a;p=platal.git diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index 698a549..16dac4f 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -55,31 +55,34 @@
{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 hasPerm('directory_private')} + {if !$smarty.session.user->isWatchedUser($profile)} {* *}{icon name=add title="Ajouter à la liste de mes surveillances"} {else} {* *}{icon name=cross title="Retirer de la liste de mes surveillances"} {/if} + {/if} {elseif $registered} {* *}{icon name=user_suit title="Afficher la fiche"} @@ -88,6 +91,7 @@ *}{icon name=vcard title="Afficher la carte de visite"} {* *}{icon name=email title="Envoyer un email"} + {if hasPerm('directory_private')} {if !$smarty.session.user->isContact($profile)} {* *}{icon name=add title="Ajouter à mes contacts"} @@ -95,11 +99,18 @@ {* *}{icon name=cross title="Retirer de mes contacts"} {/if} + {/if} {/if} {/if}
+ {/if} - {if hasPerm('admin') && $hasowner} + {if hasPerm('edit_directory')} +
+ [{* + *}{icon name=user_edit title="modifier la fiche"}] +
+ {elseif hasPerm('admin') && $hasowner}
[{if $registered && !$dead} {* @@ -119,12 +130,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 +165,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 !