Don't hide the rss link when no event is currently available.
[platal.git] / templates / events / index.tpl
index 4cf7999..9ecbe18 100644 (file)
@@ -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>