there is two RSS feeds, point on both.
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 13 Oct 2005 18:10:36 +0000 (18:10 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 13 Oct 2005 18:10:36 +0000 (18:10 +0000)
minor cosmectic changes

git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@96 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs/filrss.php
templates/filrss.tpl

index 55d4c0b..c21f8ec 100644 (file)
@@ -29,7 +29,7 @@ if (Env::has('referer')) {
 
 if (Env::has('referer')) {
     $act = Env::get('act_rss');
-    if ($act == 'Activer'){
+    if ($act == 'Activer') {
         $page->trig("Ton Fil RSS est activé.");
         $_SESSION['core_rss_hash'] = rand_url_id(16);
         $globals->xdb->execute('UPDATE auth_user_quick SET core_rss_hash={?} WHERE user_id={?}',
@@ -37,8 +37,7 @@ if (Env::has('referer')) {
     }                                
 }
 
-if (Session::get('core_rss_hash') > '')
-{
+if (Session::get('core_rss_hash')) {
     $page->assign('rsshash','oui');
 }
 
index 54b8b50..6933648 100644 (file)
@@ -46,16 +46,23 @@ ne sont pas activ
 </form>
 
 {else}
-En voici l'adresse: <a href='{rel}/carnet/rss.php/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}.xml'><img src='{rel}/images/rssicon.gif' alt='fil rss' title='fil RSS'/></a>
+En voici les adresses :
+<ul>
+  <li>
+  Anonces sur la page d'entrée :
+  <a href='{rel}/rss.php/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}.xml'><img src='{rel}/images/rssicon.gif' alt='fil rss' title='fil RSS'/></a>
+  </li>
+  <li>
+  Ton carnet polytechnicien :
+  <a href='{rel}/carnet/rss.php/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}.xml'><img src='{rel}/images/rssicon.gif' alt='fil rss' title='fil RSS'/></a>
+  </li>
+</ul>
 <p>
 Tu peux le désactiver en allant dans Préférences et en cliquant sur "désactiver les fils RSS".
-</p><p>
+</p>
+<p>
 Attention: désactiver, puis réactiver le fil RSS en change l'adresse.
 </p>
-<form method="get" action="{$goback}">
-  <div>
-    <input type="submit" name="" value="Retour" />
-  </div>
-</form>
+<p>[<a href="{$goback}">retour à la page dont tu venais</a>]</p>
 {/if}
 {* vim:set et sw=2 sts=2 sws=2: *}