Convert uses of XDB::(..., $flags->flags()) to XDB::(..., $flags)
[platal.git] / templates / events / index.tpl
index d2db089..9ecbe18 100644 (file)
@@ -49,7 +49,7 @@ Bienvenue {$smarty.session.prenom}{if $birthday}
 </p>
 {/if}
 
-{if $smarty.session.email_is_warning}
+{if $smarty.session.mx_failures|@count}
 <fieldset>
   <legend>{icon name=error} Des problèmes sont actuellement recontrĂ©s sur tes redirections suivantes</legend>
   {foreach from=$smarty.session.mx_failures item=mail}
@@ -93,7 +93,7 @@ Bienvenue {$smarty.session.prenom}{if $birthday}
       <td class="half titre" style="height: 18px; padding-top: 1px; padding-bottom: 1px;">
         {if $smarty.foreach.events.first}
         {if $smarty.session.core_rss_hash}
-        <a href='rss/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}/rss.xml' style="display:block;float:right">
+        <a href="rss/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}/rss.xml" style="display:block;float:right" title="Annonces">
           {icon name=feed title='fil rss'}
         </a>
         {else}
@@ -131,7 +131,18 @@ Bienvenue {$smarty.session.prenom}{if $birthday}
     {/foreach}
     {if !$has_evts}
     <tr>
-      <td class="half">Aucun article actuellement</td>
+      <td class="half">
+        {if $smarty.session.core_rss_hash}
+        <a href="rss/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}/rss.xml" style="display:block;float:right" title="Annonces">
+          {icon name=feed title='fil rss'}
+        </a>
+        {else}
+        <a href='prefs/rss?referer=events'  style="display:block;float:right">
+          {icon name=feed_add title='Activer mon fil rss'}
+        </a>
+        {/if}
+        Aucun article actuellement
+      </td>
     </tr>
     {/if}
   </table>