X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=a9fd0499d4a59fcbfd2acff9b54f07c24e04eb17;hb=dc6378df04a613f3a65ae5e501b65de64a672b9a;hp=1a2e8977d1df7fc99bebacefddd08882f1392e43;hpb=94c4f7a13fe97776f279304eb607398fc0ebd864;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 1a2e897..a9fd049 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2008 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -39,40 +39,60 @@ function chgMainWinLoc(strPage) //]]> {/literal} -{if $logged and $x.forlife eq $smarty.session.forlife} -[Modifier ma fiche] -{/if} -
{if $photo_url}Photo de {$x.forlife}{/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) et institution(s) X :
{$x.gpxs_join|smarty:nodefaults}
{/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 : +
{$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 :

+ {$x.freetext|miniwiki|smarty:nodefaults} {/if} - {if $x.web}
Site Web :
{$x.web}
{/if} - {if $x.freetext}
Commentaires :
{$x.freetext|miniwiki|smarty:nodefaults}
{/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.nickname} (alias {$x.nickname}){/if} + {/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 $x.forlife eq $smarty.session.forlife} + {icon name="user_edit" title="Modifier ma fiche"} + {/if} {/if}
{if $logged} @@ -106,7 +126,7 @@ function chgMainWinLoc(strPage) {/if} {if $x.mobile}
- Mobile : {$x.mobile} + Mobile : {$x.mobile}
{/if}
@@ -130,7 +150,7 @@ function chgMainWinLoc(strPage)
{if $x.adr}
-

Contact :

+

Contact :

{foreach from=$x.adr item="address" name=adresses} {if $smarty.foreach.adresses.iteration is even} {assign var=pos value="right"} @@ -138,13 +158,13 @@ function chgMainWinLoc(strPage) {assign var=pos value="left"} {/if} {if $address.active} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :" + {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :" for="`$x.prenom` `$x.nom`" pos=$pos} {elseif $address.secondaire} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :" + {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :" for="`$x.prenom` `$x.nom`" pos=$pos} {else} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :" + {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :" for="`$x.prenom` `$x.nom`" pos=$pos} {/if} {if $smarty.foreach.adresses.iteration is even}
{/if} @@ -153,21 +173,21 @@ function chgMainWinLoc(strPage) {/if} {if $x.adr_pro}
-

Informations professionnelles :

+

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 : " for=$address.entreprise pos="left"} + {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise pos="left"}
 
{/foreach}
{/if} {if $x.medals}
-

Distinctions :

+

Distinctions :

{foreach from=$x.medals item=m}
- {$m.medal} + {$m.medal}
{$m.medal}
{$m.grade}
@@ -178,14 +198,22 @@ function chgMainWinLoc(strPage) {/if} {if $logged && $x.cv}
-

Curriculum Vitae :

+

Curriculum Vitae :

{$x.cv|miniwiki:title|smarty:nodefaults}
{/if} - {if !$logged} + {if $view eq 'public'}
+ Cette fiche est publique et visible par tout internaute,
vous pouvez aussi voir celle réservée aux X. +
+
+ {elseif $view eq 'ax'} +
+ + Cette fiche est privée et ne recense que les informations transmises à l'AX. +
{/if}