X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fminifiche.tpl;h=683c5b73a07f8420a522096faecb9aba827ca167;hb=8c5f91c498e3838a6207d6d45ee5e868719d6c83;hp=21fc7453f51397772b6f0df1ecdd3677d451ce0a;hpb=09e54905d120cbd7cc885d0b1f6c0c464eaf1f82;p=platal.git diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index 21fc745..683c5b7 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -44,7 +44,7 @@
+ {if $profile->last_change}title="fiche mise à jour le {$profile->last_change|date_format}"{/if}>
{if $withAuth}
@@ -54,17 +54,17 @@
{if $profile->isFemale()}•{/if} - {if !$dead && $registered}{/if} + {if !$dead && ($withAuth || $registered)}{/if} {$profile->directory_name} - {if !$dead && $registered}{/if} + {if !$dead && ($withAuth || $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}
@@ -74,6 +74,7 @@ {if $registered || (!$dead && $hasowner)}
{if !$registered && !$dead && $hasowner} + {if hasPerm('directory_private')} {if !$smarty.session.user->isWatchedUser($profile)} {* *}{icon name=add title="Ajouter à la liste de mes surveillances"} @@ -81,6 +82,7 @@ {* *}{icon name=cross title="Retirer de la liste de mes surveillances"} {/if} + {/if} {elseif $registered} {* *}{icon name=user_suit title="Afficher la fiche"} @@ -89,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"} @@ -96,21 +99,25 @@ {* *}{icon name=cross title="Retirer de mes contacts"} {/if} + {/if} {/if} {/if}
{/if} - {if hasPerm('admin') && $hasowner} + {if hasPerm('admin') || $smarty.session.user->canEdit($profile)}
- [{if $registered && !$dead} + [{if hasPerm('admin') && $hasowner}{if !$registered && !$dead} {* *}{icon name=email title="marketter user"} {/if} {* - *}{icon name=wrench title="administrer user"} - {* - *}{icon name=user_gray title="fiche AX"}] + *}{icon name=wrench title="administrer user"}{/if}{* + *}{if hasPerm('admin') || $smarty.session.user->canEdit($profile)}{* + *}{* + *}{icon name=user_edit title="modifier la fiche"}{* + *}{* + *}{icon name=user_gray title="fiche AX"}{/if}]
{/if}
@@ -121,7 +128,7 @@ {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} @@ -146,7 +153,7 @@ {/if}
Profession : {if $job->company->url|default:$job->user_site}{$job->company->name}{else}{$job->company->name}{/if} - {if $job->subsubsector} ({$job->subsubsector}){/if}{if $job->description}
{$job->description}{/if} + {if $job->description}
{$job->description}{/if}