Port xnetevents (I hope this works).
[platal.git] / templates / xnetevents / index.tpl
index d090d5c..95d5abd 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {**************************************************************************}
 
 {if !$is_admin}
-<h1>{$asso.nom}&nbsp;: Événements</h1>
+<h1>{$asso->nom}&nbsp;: Événements</h1>
 {else}
 <h1>
-  {$asso.nom}&nbsp;: 
+  {$asso->nom}&nbsp;: 
   {if $archive}[<a href="{$platal->ns}events">Événements</a>] {else}Événements {/if}
   {if $archive}Archives {else}[<a href="{$platal->ns}events/archive">Archives</a>] {/if}
 </h1>
 
   <tr>
     <td class="titre">Date&nbsp;:</td>
-    <td>
-      {if $e.fin and $e.fin neq $e.debut}
-        {if $e.debut_day eq $e.fin_day}
-          le {$e.debut|date_format:"%d %B %Y"} de {$e.debut|date_format:"%H:%M"} à {$e.fin|date_format:"%H:%M"}
-        {else}
-          du {$e.debut|date_format:"%d %B %Y à %H:%M"}<br />
-          au {$e.fin|date_format:"%d %B %Y à %H:%M"}
-        {/if}
-      {else}
-        le {$e.debut|date_format:"%d %B %Y à %H:%M"}
-      {/if}
-    </td>
+    <td>{$e.date}</td>
   </tr>
 
   <tr>
     <td class="titre">Annonceur&nbsp;:</td>
-    <td>
-      <a href='https://www.polytechnique.org/profile/{$e.alias}' class='popup2'>{$e.prenom} {$e.nom} ({$e.promo})</a>
-    </td>
+    <td>{profile user=$e.organisateur_uid promo=true groupperms=false}</td>
   </tr>
 
   {if $is_admin || $e.show_participants || ($e.deadline_inscription && $e.inscr_open)}