X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=ad3816db9d85a8e8424bfac65267c4cd607333b1;hb=4478f95efc07709dbe0a4415e979ff0347651cf8;hp=e6a51d207b3d13d9ef1f165d2781ef6f44ef6658;hpb=01ab5780ddaab6adf864c576205905ac37dfbe65;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index e6a51d2..ad3816d 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -41,12 +41,14 @@ 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)} -

A l'X...

+

À l'X...

{if $x.section}
Section : {$x.section}
{/if} - {if $x.binets_join}
Binet(s) : {$x.binets_join}
{/if} - {if $x.gpxs_join}
Groupe(s) et institution(s) X :
{$x.gpxs_join|smarty:nodefaults}
{/if} + {if $x.binets_join}
Binet{if count($x.binets) > 1}s{/if} : + {$x.binets_join}
{/if} + {if $x.gpxs_join}
Groupe{if count($x.gpxs) > 1}s{/if} et institution{if count($x.gpxs) > 1}s{/if} X : +
{$x.gpxs_join|smarty:nodefaults}
{/if} {/if} {if $x.freetext}

Commentaires :

@@ -55,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} @@ -91,20 +93,20 @@ function chgMainWinLoc(strPage) {if $logged} @@ -121,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}
@@ -191,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'}