X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=7d236210a74d44203e92530c8e4e3e4fc91385d7;hb=eeb2ec0f85030e4890868d034ef6ff60ed94ea7d;hp=30be83a950f2b881e411a89a2a3a76790ea3787f;hpb=6261a1b5739ef81724b29235f41065327f7da656;p=platal.git
diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl
index 30be83a..7d23621 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}]({$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 $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} {$network.name}](profile/networking/{$network.type})
+ {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 :
{/if}
- {if $x.freetext}
Commentaires :
{$x.freetext|smarty:nodefaults}
{/if}
{if $logged}
@@ -81,14 +101,14 @@ function chgMainWinLoc(strPage)
le {$x.date|date_format}
{/if}
- {if $logged || $x.mobile}
+ {if $logged || $x.tels}
{/if}
{if $x.adr}
-
Contact :
- {foreach from=$x.adr item="address" key="i" name=adresses}
- {if $i is odd}
+
Contact :
+ {foreach from=$x.adr item="address" name=adresses}
+ {if $smarty.foreach.adresses.iteration is even}
{assign var=pos value="right"}
{else}
{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 $i is odd}
{/if}
+ {if $smarty.foreach.adresses.iteration is even}
{/if}
{/foreach}
{/if}
{if $x.adr_pro}
-
Informations professionnelles :
+
Informations professionnelles :
{foreach from=$x.adr_pro item="address" key="i"}
- {include file="include/emploi.tpl" address=$address}
- {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise pos="left"}
-
+ {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"}
+
{/foreach}
{/if}
{if $x.medals}
-
Distinctions :
+
Distinctions :
{foreach from=$x.medals item=m}
-
![{$m.medal} {$m.medal}](images/medals/{$m.img})
+
{$m.medal}
{$m.grade}
@@ -177,14 +202,22 @@ function chgMainWinLoc(strPage)
{/if}
{if $logged && $x.cv}
-
Curriculum Vitae :
- {$x.cv|smarty:nodefaults}
+ Curriculum Vitae :
+ {$x.cv|miniwiki:title|smarty:nodefaults}
{/if}
- {if !$logged}
+ {if $view eq 'public'}
+ {elseif $view eq 'ax'}
+
+
+ Cette fiche est privée et ne recense que les informations transmises à l'AX.
+
{/if}