X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=2ebcb4317b4221806194197b729b187ef4bbfaf1;hb=c7eac294d59c639f26b21920f7d1827d5854c82f;hp=a72fa31c06fea6d5a96db322771b06a3975ec36f;hpb=2b921a8064ea14cd554f03e5f561eb98e79a9246;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index a72fa31..2ebcb43 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} @@ -71,26 +71,26 @@ function chgMainWinLoc(strPage)
- {if $x.sexe}•{/if} + {if $user->isFemale()}•{/if} {$x.name_display} {if $logged} {if $x.nickname} (alias {$x.nickname}){/if} {/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} @@ -106,20 +106,20 @@ function chgMainWinLoc(strPage) {if $logged} @@ -140,15 +140,23 @@ function chgMainWinLoc(strPage) {if $x.iso3166_3} {$x.nationalite3}  {/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 $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}
@@ -210,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'}