X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=2ebcb4317b4221806194197b729b187ef4bbfaf1;hb=c7eac294d59c639f26b21920f7d1827d5854c82f;hp=d4572fb1b78d404f52012c4331625eae428aa0b5;hpb=53ee429b076f679168fda0301651a21b00ddf0e3;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index d4572fb..2ebcb43 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -41,12 +41,28 @@ 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.networking} +

Sur le web...

+ {foreach from=$x.networking item=network} + {$network.name} + {if $network.filter == 'web'} + {$network.address} + {elseif $network.link != ''} + {$network.address} + {else} + {$network.address} + {/if} +
+ {/foreach} {/if} {if $x.freetext}

Commentaires :

@@ -55,27 +71,26 @@ 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} + {$x.name_display} {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} @@ -86,50 +101,62 @@ function chgMainWinLoc(strPage) le {$x.date|date_format}
{/if} - {if $logged || $x.mobile} + {if $logged || $x.tels}
{if $logged} {/if} - {if $x.mobile} -
- Mobile : {$x.mobile} -
+ {if $x.tels} + {display_phones tels=$x.tels} {/if}
{/if}
- {if $x.iso3166} - {$x.nationalite}  + {if $x.iso3166_1} + {$x.nationalite}  {/if} - X {$x.promo} - {if ($x.promo_sortie-3 > $x.promo)} + {if $x.iso3166_2} + {$x.nationalite2}  + {/if} + {if $x.iso3166_3} + {$x.nationalite3}  + {/if} + 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 $logged && $x.is_referent} + [Ma fiche référent] + {/if} + {if $x.education} +  - Formation : +
    + {foreach from=$x.education item="edu"} +
  • {$edu|smarty:nodefaults}
  • + {/foreach} +
{/if} - {if $logged && $x.is_referent} - [Ma fiche référent] + {if $x.corps} + {$x.corps|smarty:nodefaults} {/if}
@@ -172,7 +199,7 @@ function chgMainWinLoc(strPage)

Distinctions :

{foreach from=$x.medals item=m}
- {$m.medal} + {$m.medal}
{$m.medal}
{$m.grade}
@@ -191,7 +218,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'}