X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fprofile%2Fprofile.tpl;h=63efbf6bdd068079c7137ac5bfc95f3788493893;hb=8dda254648e0ebf8ba0e6a7b2d58acff730ada2c;hp=ba0be60cdeafc6e7c91b5a74229637dd7e228305;hpb=9533d793aba3359b6ffcbfa5aa2f12f43aa84324;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index ba0be60..63efbf6 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -42,9 +42,9 @@ function chgMainWinLoc(strPage)
{assign var=photo value=$profile->getPhoto(false)} - {if $photo}Photo de {$profile->fullName()}{/if} + {if $photo}Photo de {$profile->fullName()}{/if} - {if $logged && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups()|smarty:nodefaults))} + {if $logged && $view eq 'private' && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups()|smarty:nodefaults))}

À l'X…

{if $profile->section}
Section : {$profile->section}
{/if} @@ -52,7 +52,7 @@ function chgMainWinLoc(strPage) {if $binets|@count}
Binet{if count($binets) > 1}s{/if} : {', '|implode:$profile->getBinetsNames()}
{/if} - {if $owner} + {if $owner && $view eq 'private'} {assign var=groups value=$owner->groupNames(true)} {if $groups|@count}
Groupe{if count($groups) > 1}s{/if} et institution{if count($groups) > 1}s{/if} X :
@@ -62,15 +62,14 @@ function chgMainWinLoc(strPage) {/if} - {assign var=networking value=$profile->getNetworking(0)} + {* 458752 stands for 0x70000 = Profile::NETWORKING_ALL *} + {assign var=networking value=$profile->getNetworking(458752)} {if count($networking) > 0}

Sur le web...

{foreach from=$networking item=network} - {$network.name} - {if $network.filter == 'web'} - {$network.address} - {elseif $network.link != ''} - {$network.address} + {$network.name} + {if $network.link} + {$network.address} {else} {$network.address} {/if} @@ -88,10 +87,7 @@ function chgMainWinLoc(strPage)
{if $profile->isFemale()}•{/if} - name_tooltip neq ""}class="hinted" title="{$profile->name_tooltip}"{/if}>{$profile->shortName()} - {if $logged} - {if $profile->nickname} (alias {$profile->nickname}){/if} - {/if} + {if $logged}{$profile->private_name}{else}{$profile->public_name}{/if} {if $logged}  {if !$profile->isDead()}{* @@ -117,17 +113,18 @@ function chgMainWinLoc(strPage) {/if}
- {if $logged} + {if $logged && $view eq 'private'}
Fiche mise à jour
le {$profile->last_change|date_format}
{/if} - {assign var=phones value=$profile->getPhones(0)} - {if $logged || count($phones) > 0} + {* 121634816 is Profile::PHONE_LINK_PROFILE | Profile::PHONE_TYPE_ANY = 0x7400000 *} + {assign var=phones value=$profile->getPhones(121634816)} + {if ($logged && $view eq 'private') || count($phones) > 0}
- {if $logged} + {if $logged && $view eq 'private'}