]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweak subtoolbar (change convert-to-label placement)
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 04:27:38 +0000 (05:27 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 04:27:38 +0000 (05:27 +0100)
functions.php
tt-rss.css

index 8640884a3dd48b799ca6bf42a8e28a0d2e6257c4..77161e8c29106c3dbfffcf17cd898c651e09ff71 100644 (file)
 
                        }
 
-                       if (!strstr($_SESSION["client.userAgent"], "MSIE")) {
+                       if (strpos($_SESSION["client.userAgent"], "MSIE") === false) {
 
                                print "<td class=\"headlineActions$rtl_cpart\">
                                        <ul class=\"headlineDropdownMenu\">
                                                <li onclick=\"$catchup_feed_link\">".__('Entire feed')."</li></ul></li>
                                        <li class=\"vsep\">&nbsp;</li>";
 
-                                       if ($limit != 0) {
+                                       if ($limit != 0 && !$search) {
                                                print "
                                                <li class=\"top\"><a href=\"$page_next_link\">".__('Next page')."</a><ul>
                                                        <li onclick=\"$page_prev_link\">".__('Previous page')."</li>
                                                        <li onclick=\"$page_first_link\">".__('First page')."</li></ul></li>
                                                        </ul>";
-                                       }
+                                               }
 
+                                       if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
+                                               print "<li class=\"top3\">
+                                                       <a href=\"javascript:labelFromSearch('$search', '$search_mode',
+                                                               '$match_on', '$feed_id', '$is_cat');\">
+                                                               ".__('Convert to Label')."</a></td>";
+                                       }
                                        print " 
                                        </td>"; 
 
                                                __('Mark as read:')."
                                                        <a href=\"#\" onclick=\"$catchup_page_link\">".__('Page')."</a>,
                                                        <a href=\"#\" onclick=\"$catchup_feed_link\">".__('Feed')."</a>";
+
+                               if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
+
+                                       print "&nbsp;&nbsp;
+                                                       <a href=\"javascript:labelFromSearch('$search', '$search_mode',
+                                                               '$match_on', '$feed_id', '$is_cat');\">
+                                                       ".__('Convert to Label')."</a>";
+                               }
+
                                print "</td>";  
 
                        }
 
-                       if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
+/*                     if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
                                print "<td class=\"headlineActions$rtl_cpart\">
                                        <a href=\"javascript:labelFromSearch('$search', '$search_mode',
                                                        '$match_on', '$feed_id', '$is_cat');\">
                                                ".__('Convert to Label')."</a></td>";
-                       }
+} */
 
                        print "<td class=\"headlineTitle$rtl_cpart\">";
                
index 122bfa9f86fd1fc50172ad3b3436cf1c4cbcfa09..8c1f7911eb25e3c5a74ef4649b3050f5b9bd41e9 100644 (file)
@@ -1478,6 +1478,15 @@ ul.headlineDropdownMenu li.top2 {
        float : left;
 }
 
+ul.headlineDropdownMenu li.top3 {
+       float : left;
+       margin : 0px; 
+       cursor : pointer;
+       border-width : 1px 1px 1px 1px;
+       border-color : transparent;
+       border-style : solid;
+}
+
 ul.headlineDropdownMenu li.vsep {
        float : left;
        margin : 0px 5px 0px 0px;