new filter action: set starred, rename add filter button

This commit is contained in:
Andrew Dolgov 2006-05-18 02:20:43 +01:00
parent adba6b8509
commit dd7d31871e
6 changed files with 21 additions and 3 deletions

View File

@ -2284,7 +2284,7 @@
print "<input type=\"submit\"
class=\"button\" onclick=\"javascript:addFilter()\"
value=\"Add filter\">";
value=\"Create filter\">";
print "</div>";

View File

@ -529,12 +529,18 @@
$unread = 'false';
$last_read_qpart = 'NOW()';
}
if ($filter_name == 'mark') {
$marked = 'true';
} else {
$marked = 'false';
}
$result = db_query($link,
"INSERT INTO ttrss_user_entries
(ref_id, owner_uid, feed_id, unread, last_read)
(ref_id, owner_uid, feed_id, unread, last_read, marked)
VALUES ('$ref_id', '$owner_uid', '$feed', $unread,
$last_read_qpart)");
$last_read_qpart, $marked)");
}
$post_needs_update = false;

View File

@ -137,6 +137,9 @@ insert into ttrss_filter_actions (id,name,description) values (1, 'filter',
insert into ttrss_filter_actions (id,name,description) values (2, 'catchup',
'Mark as read');
insert into ttrss_filter_actions (id,name,description) values (3, 'mark',
'Set starred');
create table ttrss_filters (id integer not null primary key auto_increment,
owner_uid integer not null,
feed_id integer default null,

View File

@ -131,6 +131,9 @@ insert into ttrss_filter_actions (id,name,description) values (1, 'filter',
insert into ttrss_filter_actions (id,name,description) values (2, 'catchup',
'Mark as read');
insert into ttrss_filter_actions (id,name,description) values (3, 'mark',
'Set starred');
create table ttrss_filters (id serial not null primary key,
owner_uid integer not null references ttrss_users(id) on delete cascade,
feed_id integer references ttrss_feeds(id) on delete cascade default null,

View File

@ -3,5 +3,8 @@ insert into ttrss_themes (theme_name, theme_path) values ('Old-skool', 'compat')
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('ON_CATCHUP_SHOW_NEXT_FEED', 1, 'false', 'On catchup show next feed',2,
'When "Mark as read" button is clicked in toolbar, automatically open next feed with unread articles.');
insert into ttrss_filter_actions (id,name,description) values (3, 'mark',
'Set starred');
update ttrss_version set schema_version = 8;

View File

@ -5,6 +5,9 @@ insert into ttrss_themes (theme_name, theme_path) values ('Old-skool', 'compat')
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('ON_CATCHUP_SHOW_NEXT_FEED', 1, 'false', 'On catchup show next feed',2,
'When "Mark as read" button is clicked in toolbar, automatically open next feed with unread articles.');
insert into ttrss_filter_actions (id,name,description) values (3, 'mark',
'Set starred');
update ttrss_version set schema_version = 8;
commit;