X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=ad3816db9d85a8e8424bfac65267c4cd607333b1;hb=805f3d1679a53bb04fff34619c171a1381068612;hp=138fca4f69e37dcc1fd8c2a034abecbca2adba51;hpb=862210cdc24f051a968435ebdc83731549b0af6f;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 138fca4..ad3816d 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -41,7 +41,7 @@ function chgMainWinLoc(strPage)
- {if $photo_url}Photo de {$x.forlife}{/if} + {if $photo_url}Photo de {$user->login()}{/if} {if $logged && ( $x.section|smarty:nodefaults || $x.binets_join|smarty:nodefaults || $x.gpxs_join|smarty:nodefaults)}

À l'X...

{if $x.section}
Section : {$x.section}
{/if} @@ -57,27 +57,27 @@ function chgMainWinLoc(strPage)
- {if $x.sexe}•{/if} - {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if} + {if $user->isFemale()}•{/if} + {$user->fullName()}{if $x.nom_usage neq ""} ({$x.nom}){/if} {if $logged} {if $x.nickname} (alias {$x.nickname}){/if} {/if} {if $x.web} {icon name="world_go" title="Site Web"}{/if} {if $logged} -  {if !$x.dcd}{* +  {if !$x.dcd}{* *}{icon name=vcard title="Afficher la carte de visite"}{/if} {if !$x.is_contact} - + {icon name=add title="Ajouter à mes contacts"} {else} - + {icon name=cross title="Retirer de mes contacts"} {/if} {if hasPerm('admin')} - + {icon name=wrench title="administrer user"} {/if} - {if $x.forlife eq $smarty.session.forlife} + {if $user->login() eq $smarty.session.hruid} {icon name="user_edit" title="Modifier ma fiche"} {/if} {/if} @@ -93,20 +93,20 @@ function chgMainWinLoc(strPage) {if $logged} @@ -123,15 +123,15 @@ function chgMainWinLoc(strPage) {if $x.iso3166} {$x.nationalite}  {/if} - X {$x.promo} - {if ($x.promo_sortie-3 > $x.promo)} + X {$user->promo()} + {if $x.promo_sortie && ($x.promo_sortie-3 > $x.promo)} - X {math equation="a-b" a=$x.promo_sortie b=3} {/if} {if $x.applis_join}  - Formation : {$x.applis_join|smarty:nodefaults} {/if} {if $logged && $x.is_referent} - [Ma fiche référent] + [Ma fiche référent] {/if}
@@ -193,7 +193,7 @@ function chgMainWinLoc(strPage)
Cette fiche est publique et visible par tout internaute,
- vous pouvez aussi voir celle réservée aux X. + vous pouvez aussi voir celle réservée aux X.
{elseif $view eq 'ax'}