X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fminifiche.tpl;h=9752602c8789714565d0c48100630a2264e8b8ce;hb=5aa88bdec76ee12f85da2c8b7b90407c02538c87;hp=e018b4b0a2b212ddd811e949256e010400e9e251;hpb=853ff307303faf861396c4e22dbaa56114366751;p=platal.git diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index e018b4b..9752602 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2010 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -44,7 +44,7 @@
+ {if $profile->last_change}title="fiche mise à jour le {$profile->last_change|date_format}"{/if}>
{if $withAuth}
@@ -54,9 +54,9 @@
{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}
@@ -64,7 +64,7 @@ {$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}
@@ -146,7 +153,7 @@ 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} {/if}