Do not show last profile modification for unregistered users.
[platal.git] / templates / profile / fiche_referent.tpl
index 737332c..0fe683d 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
+<script type="text/javascript">
+  $($.closeOnEsc);
+</script>
+
 {assign var=terms value=$profile->getMentoringTerms()}
 {assign var=countries value=$profile->getMentoringCountries()}
 <div id="fiche">
   </div>
   <div class="spacer"></div>
 
-  {if $profile->expertise != '' || $terms|count || $countries|count }
+  {if $profile->mentor_expertise != '' || $terms|count || $countries|count }
   <div id="part">
     <h2>Informations de référent&nbsp;:</h2>
-    {if $profile->expertise}
+    {if $profile->mentor_expertise}
     <div class="rubrique_referent">
       <em>Expertise&nbsp;: </em><br />
-      <span>{$profile->expertise|nl2br}</span>
+      <span>{$profile->mentor_expertise|nl2br}</span>
     </div>
     {/if}
     {if $terms|count}