Merge branch 'xorg/master' into xorg/f/geocoding
[platal.git] / templates / include / plview.referent.tpl
index cb0033e..f286df4 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 <div class="contact-list" style="clear: both">
 {foreach from=$set item=p}
   <div class="contact">
+    <div class="photo">
+      <img src="photo/{$p->hrid()}" alt="{$p->directory_name}" />
+    </div>
+
     <div class="nom">
-      <span {if $p.name_tooltip}class="hinted" title="{$p.name_tooltip}"{/if}>{$p.name_display}</span>
+      {if $p->isFemale()}&bull;{/if}
+      {$p->fullName()}
     </div>
     <div class="edu">
-      {$p.promo_display}
+      {$p->promo()}
     </div>
     <div class="bits" style="width: 40%;">
       <span class='smaller'>
-      <a href="profile/{$p.hruid}" class="popup2">
+      <a href="profile/{$p->hrid()}" class="popup2">
         {icon name=user_suit title="Voir sa fiche"}</a> -
-        <a href="referent/{$p.hruid}" class="popup2">Voir sa fiche référent</a>
+        <a href="referent/{$p->hrid()}" class="popup2">Voir sa fiche référent</a>
       </span>
     </div>
     <div class="long">
      <table cellspacing="0" cellpadding="0">
       <tr>
         <td class="lt">Expertise&nbsp;:</td>
-        <td class="rt" colspan="2">{$p.expertise|nl2br}</td>
+        <td class="rt" colspan="2">{$p->mentor_expertise|nl2br}</td>
       </tr>
      </table>
     </div>