]> git.wh0rd.org Git - tt-rss.git/commitdiff
subtoolbar tweaks, properly display search results title for vfeeds
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 5 May 2008 07:18:14 +0000 (08:18 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 5 May 2008 07:18:14 +0000 (08:18 +0100)
functions.php
tt-rss.css

index 30a6393447e8ea8933ff11d93994141eac6aa840..4ed1f4b66ce7c2e32be4d73993ab9b899f3fd0c0 100644 (file)
        
                        } else if ($feed == -1) {
                                $feed_title = __("Starred articles");
+                               if ($search) {  $feed_title = __("Searched for") . " $search ($feed_title)"; }
                        } else if ($feed == -2) {
                                $feed_title = __("Published articles");
+                               if ($search) {  $feed_title = __("Searched for") . " $search ($feed_title)"; }
                        } else if ($feed == -3) {
                                $feed_title = __("Fresh articles");
+                               if ($search) {  $feed_title = __("Searched for") . " $search ($feed_title)"; }
                        } else if ($feed < -10) {
                                $label_id = -$feed - 11;
                                $result = db_query($link, "SELECT description FROM ttrss_labels
                        if (!$dashboard_menu) {
 
                                if (strpos($_SESSION["client.userAgent"], "MSIE") === false) {
-       
+
                                        print "<td class=\"headlineActions$rtl_cpart\">
+                                               <ul class=\"headlineDropdownMenu\">
+                                               <li class=\"top2\">
+                                               ".__('Select:')."
+                                                       <a href=\"$sel_all_link\">".__('All')."</a>,
+                                                       <a href=\"$sel_unread_link\">".__('Unread')."</a>,
+                                                       <a href=\"$sel_none_link\">".__('None')."</a></li>
+                                               <li class=\"vsep\">&nbsp;</li>
+                                               <li class=\"top\">".__('Actions...')."<ul>
+                                                       <li><span class=\"insensitive\">".__('Selection toggle:')."</span></li>
+                                                       <li onclick=\"$tog_unread_link\">&nbsp;&nbsp;".__('Unread')."</li>
+                                                       <li onclick=\"$tog_marked_link\">&nbsp;&nbsp;".__('Starred')."</li>
+                                                       <li onclick=\"$tog_published_link\">&nbsp;&nbsp;".__('Published')."</li>
+                                                       <li><span class=\"insensitive\">".__('Mark as read:')."</span></li>
+                                                       <li onclick=\"$catchup_sel_link\">&nbsp;&nbsp;".__('Selection')."</li>";
+
+
+/*                             if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
+       
+                                       print "
+                                               <li onclick=\"catchupRelativeToArticle(0)\">&nbsp;&nbsp;".__("Above active article")."</li>
+                                               <li onclick=\"catchupRelativeToArticle(1)\">&nbsp;&nbsp;".__("Below active article")."</li>";
+                               } else {
+                                       print "
+                                               <li><span class=\"insensitive\">&nbsp;&nbsp;".__("Above active article")."</span></li>
+                                               <li><span class=\"insensitive\">&nbsp;&nbsp;".__("Below active article")."</span></li>";
+
+                               } */
+
+                               print "<li onclick=\"$catchup_feed_link\">&nbsp;&nbsp;".__('Entire feed')."</li>";
+
+                               print "<li><span class=\"insensitive\">".__('Other actions:')."</span></li>";
+               
+
+                               if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
+                                       print "
+                                               <li onclick=\"javascript:labelFromSearch('$search', '$search_mode',
+                                                       '$match_on', '$feed_id', '$is_cat');\">&nbsp;&nbsp;
+                                                       ".__('Search to label')."</li>";
+                               } else {
+                                       print "<li><span class=\"insensitive\">&nbsp;&nbsp;".__('Search to label')."</li>";
+
+                               }
+                               
+                               print   "</ul></li></ul>";
+
+/*                                     print "<td class=\"headlineActions$rtl_cpart\">
                                                <ul class=\"headlineDropdownMenu\">
                                                <li class=\"top2\">
                                                ".__('Select:')."
                                                                <a href=\"javascript:labelFromSearch('$search', '$search_mode',
                                                                        '$match_on', '$feed_id', '$is_cat');\">
                                                                        ".__('Convert to label')."</a></td>";
-                                               }
-                                               print " 
-                                               </td>"; 
+                                               } */
+
+                                               print "</td>"; 
        
                                } else {
                                // old style subtoolbar:
index e772b83b5b60a543764d8bacaff772678da41a29..4edd7714f64dd2c5ada6f0ce368d17c0bc596a69 100644 (file)
@@ -1629,7 +1629,7 @@ ul.headlineDropdownMenu li.vsep {
 
 ul.headlineDropdownMenu li.top:hover {
        cursor : pointer;
-       border-width : 1px 1px 0px 1px;
+       border-width : 1px 1px 1px 1px;
        border-color : #c0c0c0;
        border-style : solid;
 }