Backport r1819
[platal.git] / templates / events / index.tpl
index 5284ea1..ac4c0f1 100644 (file)
@@ -30,8 +30,6 @@
 Bienvenue {$smarty.session.prenom}
 {if $birthday}
   et joyeux anniversaire de {$birthday} ans de la part de toute l'équipe !
-{else}
-:o)
 {/if}
 </h1>
 
@@ -140,6 +138,7 @@ Bienvenue {$smarty.session.prenom}
 
   <script type="text/javascript">
   {literal}
+  <!--
   function readEvent(id) {
        document.getElementById('content-evt'+id).style.display='none';
        var link = document.getElementById('link-evt'+id);
@@ -151,6 +150,7 @@ Bienvenue {$smarty.session.prenom}
        Ajax.update_html(null, 'events/read/'+id);
        return false;
   }
+  -->
   {/literal}
   </script>
  
@@ -190,30 +190,33 @@ Bienvenue {$smarty.session.prenom}
     <tr class="impair">
       <td class="half">
         <div>
-          {* if $ev.img *}
+          {if $ev.img}
           <div style="float: {$position}; padding-{if $position eq right}left{else}right{/if}: 0.5em">
             <img src="events/photo/{$ev.id}" alt="{$ev.title}" />
           </div>
-          {* /if *}
+          {/if}
           <div style="text-align: justify">
-            {tidy}
-              {$ev.texte|smarty:nodefaults|nl2br}
-            {/tidy}
+            {$ev.texte|smarty:nodefaults|nl2br}
           </div>
         </div>
       </td>
     </tr>
     <tr class="pair">
-      <td class="half">
-        <a href="events#pagetop" style="display:block; float: right; padding-left:1em">
-          <img alt="Sommaire" title="Remonter tout en haut" src="images/up.png"/>
-        </a>
-        <span class="smaller">
-          Annonce proposée par
-          <a href="profile/{$ev.forlife}" class="popup2">
-            {$ev.prenom} {$ev.nom} X{$ev.promo}
+      <td class="half smaller">
+        <div style="display:block; float: right; padding-left:1em">
+          {if $ev.post_id}
+          <a href="banana/{#globals.banana.event_reply#|default:#globals.banana.event_forum#}/read/{$ev.post_id}">
+            {icon name="comments" title="Discussion"}Suivre la discussion
+          </a> &bull;
+          {/if}
+          <a href="events#pagetop">
+            <img alt="Sommaire" title="Remonter tout en haut" src="images/up.png"/>
           </a>
-        </span>
+        </div>
+        Annonce proposée par
+        <a href="profile/{$ev.forlife}" class="popup2">
+          {$ev.prenom} {$ev.nom} X{$ev.promo}
+        </a>
       </td>
     </tr>
   </table>