X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=9891c95278cda05faddd52f2017e3cfbcae44bdf;hb=9243a284d60fb2fdcc1284313723515086246f8a;hp=2c80d5dda0bbcdf974aec0158cbcf4ae965ecd38;hpb=8b1f8e12d444062ef63a0db3a8fa94582a9778c3;p=platal.git
diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl
index 2c80d5d..9891c95 100644
--- a/templates/profile/profile.tpl
+++ b/templates/profile/profile.tpl
@@ -1,6 +1,6 @@
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 Polytechnique.org *}
+{* Copyright (C) 2003-2007 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@ -21,19 +21,26 @@
{**************************************************************************}
{literal}
-
+//]]>
{/literal}
{if $logged and $x.forlife eq $smarty.session.forlife}
-[Modifier ma fiche]
+[Modifier ma fiche]
{/if}
@@ -47,21 +54,21 @@ function chgMainWinLoc( strPage ) {
{*
*}{icon name=vcard title="Afficher la carte de visite"}
{if !$x.is_contact}
-
- {icon name=add title="Ajouter à mes contacts"}
+
+ {icon name=add title="Ajouter à mes contacts"}
{else}
-
+
{icon name=cross title="Retirer de mes contacts"}
{/if}
- {if $smarty.session.perms eq admin}
-
+ {if $smarty.session.perms->hasFlag('admin')}
+
{icon name=wrench title="administrer user"}
{/if}
{/if}
{if $logged}
- Fiche mise à jour
+ Fiche mise à jour
le {$x.date|date_format}
{/if}
@@ -70,12 +77,12 @@ function chgMainWinLoc( strPage ) {
{if $logged}
{if $x.dcd}
- Décédé{if $x.sexe}e{/if} le {$x.deces|date_format}
+ 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,
{elseif !$x.inscrit}
- Cette personne n'est pas inscrite à Polytechnique.org,
+ Cette personne n'est pas inscrite à Polytechnique.org,
{else}
{if $virtualalias}
@@ -107,7 +114,7 @@ function chgMainWinLoc( strPage ) {
{/if}
{if $logged}
{if $x.is_referent}
- []
+ []
{/if}
{/if}
@@ -120,7 +127,7 @@ function chgMainWinLoc( strPage ) {
{if $x.gpxs_join}Groupe(s) X : {$x.gpxs_join|smarty:nodefaults}
{/if}
{/if}
{if $x.web}Site Web :
{/if}
- {if $x.freetext}Commentaires :
{$x.freetext|nl2br|smarty:nodefaults}
{/if}
+ {if $x.freetext}Commentaires :
{$x.freetext|smarty:nodefaults}
{/if}
{if $x.adr}
@@ -178,17 +185,17 @@ function chgMainWinLoc( strPage ) {
Curriculum Vitae :
- {$x.cv|nl2br}
+ {$x.cv|smarty:nodefaults}
|
{/if}
{/if}
{if !$logged}
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.
|
{/if}
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}