+
${__("Select...")}
+
+
${__('All')}
+
${__('Unread')}
+
${__('Invert')}
+
${__('None')}
+
+
${__('Toggle unread')}
+
${__('Toggle starred')}
+
${__('Toggle published')}
+
+
${__('Mark as read')}
+
${__('Set score')}
+ ${tb.plugin_menu_items}
+ ${headlines.id === 0 && !headlines.is_cat ?
+ `
+
+
${__('Delete permanently')}
+ ` : ''}
+
+ ${tb.plugin_buttons}
+
+ `);
+
+ dojo.parser.parse(target.domNode);
+ },
onLoaded: function (transport, offset, append) {
const reply = App.handleRpcJson(transport);
@@ -613,9 +665,11 @@ const Headlines = {
this.headlines = [];
this.vgroup_last_feed = undefined;
- dojo.html.set($("toolbar-headlines"),
+ /*dojo.html.set($("toolbar-headlines"),
reply['headlines']['toolbar'],
- {parseContent: true});
+ {parseContent: true});*/
+
+ Headlines.renderToolbar(reply['headlines']);
if (typeof reply['headlines']['content'] == 'string') {
$("headlines-frame").innerHTML = reply['headlines']['content'];
@@ -646,11 +700,12 @@ const Headlines = {
hsp.innerHTML = "
" +
__("Click to open next unread feed.") + "";
+ /*
if (Feeds._search_query) {
$("feed_title").innerHTML += "
" +
" (" + __("Cancel search") + ")" +
"";
- }
+ } */
Headlines.updateCurrentUnread();
diff --git a/plugins/mail/init.php b/plugins/mail/init.php
index 40d147fc9..829620ebc 100644
--- a/plugins/mail/init.php
+++ b/plugins/mail/init.php
@@ -15,12 +15,17 @@ class Mail extends Plugin {
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
$host->add_hook($host::HOOK_PREFS_TAB, $this);
+ $host->add_hook($host::HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM, $this);
}
function get_js() {
return file_get_contents(dirname(__FILE__) . "/mail.js");
}
+ function hook_headline_toolbar_select_menu_item($feed_id, $is_cat) {
+ return "
".__('Forward by email')."
";
+ }
+
function save() {
$addresslist = $_POST["addresslist"];
@@ -32,7 +37,7 @@ class Mail extends Plugin {
function hook_prefs_tab($args) {
if ($args != "prefPrefs") return;
- print "
mail ".__('Mail plugin')."\">";
print "
" . __("You can set predefined email addressed here (comma-separated list):") . "
";
diff --git a/plugins/mailto/init.php b/plugins/mailto/init.php
index 390984b71..3e24dcf29 100644
--- a/plugins/mailto/init.php
+++ b/plugins/mailto/init.php
@@ -12,6 +12,11 @@ class MailTo extends Plugin {
$this->host = $host;
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
+ $host->add_hook($host::HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM, $this);
+ }
+
+ function hook_headline_toolbar_select_menu_item($feed_id, $is_cat) {
+ return "
".__('Forward by email')."
";
}
function get_js() {
diff --git a/themes/compact.css b/themes/compact.css
index 24380d428..6e4f59c84 100644
--- a/themes/compact.css
+++ b/themes/compact.css
@@ -704,6 +704,8 @@ body.ttrss_main #toolbar-frame #toolbar i {
margin: 0 4px;
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines {
+ font-size: 12px;
+ background: transparent;
padding-right: 4px;
flex-grow: 2;
display: flex;
@@ -713,7 +715,8 @@ body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left {
display: flex;
align-items: center;
}
-body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left #feed_title {
+body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
+body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search {
margin-left: 4px;
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right {
diff --git a/themes/compact_night.css b/themes/compact_night.css
index a366404a4..7dd4c0b0e 100644
--- a/themes/compact_night.css
+++ b/themes/compact_night.css
@@ -704,6 +704,8 @@ body.ttrss_main #toolbar-frame #toolbar i {
margin: 0 4px;
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines {
+ font-size: 12px;
+ background: transparent;
padding-right: 4px;
flex-grow: 2;
display: flex;
@@ -713,7 +715,8 @@ body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left {
display: flex;
align-items: center;
}
-body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left #feed_title {
+body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
+body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search {
margin-left: 4px;
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right {
diff --git a/themes/light.css b/themes/light.css
index d3f5d7978..6f70862d6 100644
--- a/themes/light.css
+++ b/themes/light.css
@@ -704,6 +704,8 @@ body.ttrss_main #toolbar-frame #toolbar i {
margin: 0 4px;
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines {
+ font-size: 12px;
+ background: transparent;
padding-right: 4px;
flex-grow: 2;
display: flex;
@@ -713,7 +715,8 @@ body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left {
display: flex;
align-items: center;
}
-body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left #feed_title {
+body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
+body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search {
margin-left: 4px;
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right {
diff --git a/themes/light/tt-rss.less b/themes/light/tt-rss.less
index d13ffff3e..4632997ba 100644
--- a/themes/light/tt-rss.less
+++ b/themes/light/tt-rss.less
@@ -820,6 +820,8 @@ body.ttrss_main {
}
#toolbar-headlines {
+ font-size : 12px;
+ background: transparent;
padding-right : 4px;
flex-grow : 2;
display : flex;
@@ -829,7 +831,7 @@ body.ttrss_main {
display : flex;
align-items : center;
- #feed_title {
+ .feed_title, .cancel_search {
margin-left : 4px;
}
}
diff --git a/themes/night.css b/themes/night.css
index 87a68a3c0..579f6dcdf 100644
--- a/themes/night.css
+++ b/themes/night.css
@@ -705,6 +705,8 @@ body.ttrss_main #toolbar-frame #toolbar i {
margin: 0 4px;
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines {
+ font-size: 12px;
+ background: transparent;
padding-right: 4px;
flex-grow: 2;
display: flex;
@@ -714,7 +716,8 @@ body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left {
display: flex;
align-items: center;
}
-body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left #feed_title {
+body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
+body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search {
margin-left: 4px;
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right {
diff --git a/themes/night_blue.css b/themes/night_blue.css
index 02a66656b..3697cff05 100644
--- a/themes/night_blue.css
+++ b/themes/night_blue.css
@@ -705,6 +705,8 @@ body.ttrss_main #toolbar-frame #toolbar i {
margin: 0 4px;
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines {
+ font-size: 12px;
+ background: transparent;
padding-right: 4px;
flex-grow: 2;
display: flex;
@@ -714,7 +716,8 @@ body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left {
display: flex;
align-items: center;
}
-body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left #feed_title {
+body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .feed_title,
+body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .left .cancel_search {
margin-left: 4px;
}
body.ttrss_main #toolbar-frame #toolbar #toolbar-headlines .right {