X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=e6a0cd3091c02d97f85d91184e1d4aabc5868f3c;hb=2a3f4f5730d9b23564ab6ef8f94d0a0a2ddf888d;hp=9891c95278cda05faddd52f2017e3cfbcae44bdf;hpb=60979eb75d10a4bb4ff0ce7ef8ec9fa6bee70f65;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 9891c95..e6a0cd3 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2009 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -22,16 +22,16 @@ {literal} {/literal} -{if $logged and $x.forlife eq $smarty.session.forlife} -[Modifier ma fiche] -{/if} - -
-
- {if $x.sexe}•{/if}
- {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if}
- {if $logged}
- {if $x.nickname} (alias {$x.nickname}){/if}
- {*
- *}{icon name=vcard title="Afficher la carte de visite"}
- {if !$x.is_contact}
-
- {icon name=add title="Ajouter à mes contacts"}
+
+
+ {if $photo_url}{/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}
+ {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 :
+ {/if}
+ {/if}
+ {if $x.freetext}
+ {$x.gpxs_join|smarty:nodefaults} Commentaires :+ {$x.freetext|miniwiki|smarty:nodefaults} + {/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}{*
+ *}{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 $user->login() eq $smarty.session.hruid}
+ {icon name="user_edit" title="Modifier ma fiche"}
+ {/if}
+ {/if}
+
+ {if $logged}
+
+ Fiche mise à jour
+ {/if}
+ {if $logged || $x.mobile}
+ + le {$x.date|date_format} +
+ {if $logged}
+
+ {if $x.dcd}
+ Décédé{if $user->isFemale()}e{/if} le {$x.deces|date_format}
+ {elseif !$x.actif}
+ Ce{if $c.sexe}tte{/if} camarade n'a plus d'adresse de redirection valide,
- {if $logged}
- + clique ici si tu connais son adresse email ! + {elseif !$x.inscrit} + Cette personne n'est pas inscrite à Polytechnique.org, + clique ici si tu connais son adresse email ! {else} - - {icon name=cross title="Retirer de mes contacts"} + {if $virtualalias} + {$virtualalias} {/if} - {if $smarty.session.perms->hasFlag('admin')} - - {icon name=wrench title="administrer user"} + {$user->bestEmail()} + {if $user->bestEmail() neq $user->forlifeEmail()} + {$user->forlifeEmail()} {/if} {/if}
- Fiche mise à jour
{/if}
- {if $logged || $x.mobile}
- - le {$x.date|date_format} -
- {if $logged}
-
- {if $x.dcd}
- Décédé{if $x.sexe}e{/if} le {$x.deces|date_format}
- {elseif !$x.actif}
- Ce camarade n'a plus d'adresse redirection valide,
- {/if}
- - clique ici si tu connais son adresse email ! - {elseif !$x.inscrit} - Cette personne n'est pas inscrite à Polytechnique.org, - clique ici si tu connais son adresse email ! - {else} - {if $virtualalias} - {$virtualalias} - {/if} - {$x.bestalias}@{#globals.mail.domain#} - {if $x.bestalias neq $x.forlife} - {$x.forlife}@{#globals.mail.domain#} - {/if} - {/if} -
- {if $x.mobile}Mobile : {$x.mobile}
-
+ {if $x.mobile}
+ {/if} -
+ Mobile : {$x.mobile}
{/if}
-
- {if $x.iso3166}
-
- {/if}
- X {$x.promo}
- {if ($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}
- {if $x.is_referent}
- [Ma fiche référent]
- {/if}
- {/if}
-
- |
-
- {if $photo_url}{/if}
- {if $logged}
- {if $x.section} Section : {$x.section} {/if}
- {if $x.binets_join}Binet(s) : {$x.binets_join} {/if}
- {if $x.gpxs_join}Groupe(s) X : {$x.gpxs_join|smarty:nodefaults} {/if}
+
+
+ {/if}
+
+ {if $x.iso3166}
+
+ {/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}
+ {if $logged && $x.is_referent}
+ [Ma fiche référent]
{/if}
- {if $x.web} Site Web : {$x.web} {/if}
- {if $x.freetext}Commentaires : {/if}
- {$x.freetext|smarty:nodefaults} |
- |
- Contact :- {foreach from=$x.adr item="address" key="i"} - {if $address.active} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :"} - {elseif $address.secondaire} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :"} - {else} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :"} - {/if} - {/foreach} - |
- ||
- Informations professionnelles :- {foreach from=$x.adr_pro item="address" key="i"} +
+ Informations professionnelles :+ {foreach from=$x.adr_pro item="address" key="i"} + {if $i neq 0}{/if} {include file="include/emploi.tpl" address=$address} - {include file="geoloc/address.tpl" address=$address titre="Adresse : "} + {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise pos="left"} |
- ||
- Distinctions :- {foreach from=$x.medals item=m} -
|
- ||
- Curriculum Vitae :- {$x.cv|smarty:nodefaults} - |
- ||
Cette fiche est publique et visible par tout internaute, -vous pouvez aussi voir celle réservée aux X. - |