add subtoolbar dropdown action to view generated feed

This commit is contained in:
Andrew Dolgov 2010-11-04 17:28:38 +03:00
parent c784546704
commit f0361de20b
1 changed files with 6 additions and 1 deletions

View File

@ -4230,10 +4230,12 @@
$search_q = "&q=$search&m=$match_on&smode=$search_mode"; $search_q = "&q=$search&m=$match_on&smode=$search_mode";
} }
$rss_link = "backend.php?op=rss&id=$feed_id&is_cat=$is_cat&view-mode=$view_mode$search_q";
print " print "
<a target=\"_blank\" <a target=\"_blank\"
title=\"".__("View as RSS feed")."\" title=\"".__("View as RSS feed")."\"
href=\"backend.php?op=rss&id=$feed_id&is_cat=$is_cat&view-mode=$view_mode$search_q\"> href=\"$rss_link\">
<img class=\"noborder\" src=\"images/feed-icon-12x12.png\"></a>"; <img class=\"noborder\" src=\"images/feed-icon-12x12.png\"></a>";
print "</div>"; print "</div>";
@ -4279,6 +4281,9 @@
print_labels_headlines_dropdown($link, $feed_id); print_labels_headlines_dropdown($link, $feed_id);
print "<li class=\"insensitive\">".__('Feed:')."</li>";
print "<li onclick=\"window.open('$rss_link')\">&nbsp;&nbsp;".__('View as RSS')."</li>";
print "</ul>"; print "</ul>";
print "</div>"; print "</div>";