Merge branch 'xorg/1.0.2/master' into xorg/master
[platal.git] / templates / xnetevents / subscribe.tpl
index 688876a..61c7f23 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  *}
 </p>
 
 <p class='descr'>
-  Cet événement a lieu 
-  <strong>
-  {if $event.fin and $event.fin neq $event.debut}
-    {if $event.first_day eq $event.last_day}
-      le {$event.debut|date_format:"%d %B %Y"} de {$event.debut|date_format:"%H:%M"} à {$event.fin|date_format:"%H:%M"}
-    {else}
-      du {$event.debut|date_format:"%d %B %Y à %H:%M"}<br />
-      au {$event.fin|date_format:"%d %B %Y à %H:%M"}
-    {/if}
-  {else}
-    le {$event.debut|date_format:"%d %B %Y à %H:%M"}
-  {/if}
-  </strong>
-  et a été proposé par
-  <a href='https://www.polytechnique.org/profile/{$event.alias}' class='popup2'>
-    {$event.prenom} {$event.nom} ({$event.promo}).
-  </a>
+  {assign var=profile value=$event.organizer->profile()}
+  Cet événement a lieu <strong>{$event.date}</strong> et a été proposé par
+  <a href='https://www.polytechnique.org/profile/{$profile->hrpid}' class='popup2'>
+    {$event.organizer->fullName('promo')}
+  </a>.
 </p>
 
 <p class='descr'>
@@ -52,7 +40,7 @@
 
 {if $admin || $event.show_participants}
 <p class='descr'>
-  Tu peux 
+  Tu peux
   <a href="{$platal->ns}events/admin/{$event.eid}">
     consulter la liste des participants
     {icon name=group title="Liste des participants"}</a>
           {elseif $event.paid < $event.topay}
           Tu dois encore payer {math equation="a-b" a=$event.topay b=$event.paid|replace:'.':','}&nbsp;&euro;
           (tu as déjà payé {$event.paid|replace:'.':','}&nbsp;&euro;).
-          {else} 
+          {else}
           Tu as déjà payé {$event.paid|replace:'.':','}&nbsp;&euro; pour ton inscription.
           {/if}
         </div>