X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=926f8079bdecb5f7f4e175bf89555bbfb0ead9a4;hb=0c933597941b2a12c4e4565759668b8110715c91;hp=2da1c3950efd39e5c672e336f2848e50eb576ff5;hpb=ba879af870d71163785c12ae4f4e7a070c6e614e;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 2da1c39..926f807 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -87,7 +87,7 @@ function chgMainWinLoc(strPage)
{if $profile->isFemale()}•{/if} - {if $logged}{$profile->private_name}{else}{$profile->public_name}{/if} + {if $view eq 'private'}{$profile->private_name}{else}{$profile->public_name}{/if} {if $logged}  {if !$profile->isDead()}{* @@ -152,6 +152,8 @@ function chgMainWinLoc(strPage) {/if}
+ {else} +
{/if}
@@ -170,21 +172,24 @@ function chgMainWinLoc(strPage)  - Formation :
    {foreach from=$educations item=edu} -
  • {display_education edu=$edu profile=$profile}
  • +
  • {display_education edu=$edu profile=$profile full=true}
  • {/foreach}
{/if} {assign var=corps value=$profile->getCorps()} {if $corps && ($corps->current || $corps->original)} -
    +
      {if $corps->current} -
    • Corps actuel : {$corps->current_name} {$corps->current_rank}
    • +
    • + Corps actuel : {$corps->current_name} + {if $corps->current_rank}({$corps->current_rank}){/if} +
    • {/if} - {if $corps->original} + {if $corps->current != $corps->original && $corps->original}
    • Corps d'origine : {$corps->original_name}
    • {/if} -
    +
{/if}
@@ -207,13 +212,13 @@ function chgMainWinLoc(strPage) {/if} {if $address->hasFlag('current')} {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" actuelle :" - for="`$profile->firstname` `$profile->lastname`" pos=$pos} + for="`$profile->firstname` `$profile->lastname`" pos=$pos phones=null} {elseif $address->hasFlag('secondary')} {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" secondaire :" - for="`$profile->firstname` `$profile->lastname`" pos=$pos} + for="`$profile->firstname` `$profile->lastname`" pos=$pos phones=null} {else} {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" principale :" - for="`$profile->firstname` `$profile->lastname`" pos=$pos} + for="`$profile->firstname` `$profile->lastname`" pos=$pos phones=null} {/if} {if $smarty.foreach.addresses.iteration is even}
{/if} {/foreach} @@ -227,11 +232,11 @@ function chgMainWinLoc(strPage) {foreach from=$jobs item="job" key="i"} {if $i neq 0}
{/if} {include file="include/emploi.tpl" job=$job} - {assign var=phones value=$job->phones()} + {assign var=jobPhones value=$job->phones()} {if $job->address()} - {include file="geoloc/address.tpl" address=$job->address() titre="Adresse : " for=$job->company->name pos="left" phones=$phones} - {elseif $phones} - {display_phones tels=$phones} + {include file="geoloc/address.tpl" address=$job->address() titre="Adresse : " for=$job->company->name pos="left" phones=$jobPhones} + {elseif $jobPhones|@count neq 0} + {display_phones tels=$jobPhones} {/if}
 
{/foreach}