]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweak new version notify
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 21 Aug 2006 04:01:08 +0000 (05:01 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 21 Aug 2006 04:01:08 +0000 (05:01 +0100)
functions.php
tt-rss.css

index 6b722a7ae7875c3085882bbc6035cf0c1c8602e1..7ec46f097f987543c4e69e6647afd733f9ef54db 100644 (file)
                        $last_version = trim(preg_replace("/(Milestone)|(completed)/", "", $last_item["title"]));
                        $cur_version = preg_replace("/\.99/", "", VERSION);
 
-                       $release_url = $last_item["link"];
+                       $release_url = sanitize_rss($last_item["link"]);
+                       $content = sanitize_rss($last_item["description"]);
 
                        if ($cur_version != $last_version) {
-                               return "<div class=\"notice\"><a target=\"_new\" href=\"$release_url\">
-                                               New version of Tiny-Tiny RSS ($last_version) is available.</a></div>";
+                               return "<div class=\"notice\"><a href=\"javascript:showBlockElement('milestoneDetails')\">      
+                                       New version of Tiny-Tiny RSS ($last_version) is available (click for details)</a>
+                                       <div id=\"milestoneDetails\">$content</div></div>";
                        }                       
                }
        }
index d2a4afadd8cae45be3bdaf9e86613e22b4d12972..5f771fe6eaff1f1df181b4fc8eb5802a74d46f26 100644 (file)
@@ -1214,3 +1214,6 @@ table.loginForm2 .innerLoginCell {
        padding-top : 0.5em;
 }
 
+#milestoneDetails {
+       display : none;
+}