diff --git a/functions.js b/functions.js index 991c0715..da12a3c3 100644 --- a/functions.js +++ b/functions.js @@ -155,11 +155,13 @@ function notify_real(msg, doc, no_hide, is_err) { // n.style.backgroundColor = "#ffcccc"; // n.style.color = "black"; // n.style.borderColor = "#ff0000"; + msg = " " + msg; } else { n.className = "notify"; // n.style.backgroundColor = "#fff7d5"; // n.style.borderColor = "#d7c47a"; // n.style.color = "black"; + msg = " " + msg; } // msg = " " + msg; @@ -1396,7 +1398,7 @@ function toggleSubmitNotEmpty(e, submit_id) { } function isValidURL(s) { - return s.match("http://") != null || s.match("https://") != null; + return s.match("http://") != null || s.match("https://") != null || s.match("feed://") != null; } function qafAdd() { diff --git a/functions.php b/functions.php index 10b45d29..97337470 100644 --- a/functions.php +++ b/functions.php @@ -2619,9 +2619,9 @@ if (version_compare(VERSION, $latest_version) == -1) { if ($brief_fmt) { - return "
+ return format_notice(" New version of Tiny-Tiny RSS ($latest_version) is available (click for details) -
$content
"; +
$content
"); } else { return "New version of Tiny-Tiny RSS ($latest_version) is available:
$content
@@ -3174,4 +3174,14 @@ header("Pragma: no-cache"); // HTTP/1.0 } + function format_warning($msg) { + return "
+ $msg
"; + } + + function format_notice($msg) { + return "
+ $msg
"; + } + ?> diff --git a/help/1.php b/help/1.php index 309783f4..fc7c2003 100644 --- a/help/1.php +++ b/help/1.php @@ -1,12 +1,6 @@ -

Help for SQL expressions

+

Labels and SQL Expressions

-

Description

- -

The «SQL expression» is added to WHERE clause of - view feed query. You can match on ttrss_entries table fields - and even use subselect to query additional information. This - functionality is considered to be advanced and requires basic - understanding of SQL.

+

Labels are generated by using SQL expressions. The «SQL expression» is added to WHERE clause of view feed query. You can match on ttrss_entries table fields and even use subselect to query additional information. This functionality is considered to be advanced and requires some understanding of SQL.

Examples

diff --git a/help/2.php b/help/2.php new file mode 100644 index 00000000..83cf5d4d --- /dev/null +++ b/help/2.php @@ -0,0 +1,10 @@ +

Content filters

+ +

TT-RSS has support for filtering (or processing) articles. Filtering is done once, when new article is imported to the database from the newsfeed, specified field is matched against regular expression and some action is taken. Regular expression matching is case-insensitive.

+ +

Supported actions: filter (do not import) article, mark article as read, set starred, assign tag(s). Filters can be defined globally and for some specific feed.

+ +

Multiple and inverse matching are supported. All matching filters are considered when article is being imported and all actions executed in sequence. Inverse matching reverts matching result, e.g. filter matching XYZZY in title with inverse flag will match all articles, except those containing string XYZZY in title.

+ +

See this page for additional information on filtering.

+ diff --git a/images/sign_excl.png b/images/sign_excl.png new file mode 100644 index 00000000..c20b0cb3 Binary files /dev/null and b/images/sign_excl.png differ diff --git a/images/sign_info.png b/images/sign_info.png new file mode 100644 index 00000000..bfd27595 Binary files /dev/null and b/images/sign_info.png differ diff --git a/images/sign_quest.png b/images/sign_quest.png new file mode 100644 index 00000000..d26e577e Binary files /dev/null and b/images/sign_quest.png differ diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 3b5ed89d..d1ef0eae 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -35,14 +35,15 @@ } if (count($subscribed) > 0) { - print "
"; - print "Subscribed to feeds:"; - print "
"; + $msg .= ""; + + print format_notice($msg); } } @@ -442,11 +443,9 @@ } if (subscribe_to_feed($link, $feed_url, $cat_id)) { - print "Subscribed to $feed_url."; + print format_notice("Subscribed to $feed_url."); } else { - print "
- Already subscribed to $feed_url. -
"; + print format_warning("Already subscribed to $feed_url."); } if ($p_from != 'tt-rss') { @@ -548,9 +547,7 @@ } else { - print "
- Category $feed_cat already exists in the database. -
"; + print format_warning("Category $feed_cat already exists in the database."); } } @@ -577,8 +574,7 @@ WHERE id = '$id' AND owner_uid = " . $_SESSION["uid"]); } else { - print "
- Unable to delete non empty feed categories.
"; + print format_warning("Unable to delete non empty feed categories."); } diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 052c5d44..e348fe69 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -213,6 +213,9 @@ $filter_types[$line["id"]] = $line["description"]; } + print " + "; + print ""; - print "
See - this page - for additional information on filtering
"; /* print "
First matching filter is used, filtering is performed diff --git a/modules/pref-labels.php b/modules/pref-labels.php index 94e306a2..3b7d7f79 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -190,6 +190,9 @@ $sort = "description"; } + print " + "; + print "
"; print"  Caption SQL Expression - (?) "; diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 524ab5a6..fd796bcc 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -164,35 +164,25 @@ pwd_hash = 'SHA1:".sha1("password")."')"); if (db_num_rows($result) != 0) { - print "
- Your password is at default value, please change it. -
"; + print format_warning("Your password is at default value, please change it."); } if ($_SESSION["pwd_change_result"] == "failed") { - print "
- There was an error while changing your password. -
"; + print format_warning("Could not change the password."); } if ($_SESSION["pwd_change_result"] == "ok") { - print "
- Password changed successfully. -
"; + print format_notice("Password was changed."); } $_SESSION["pwd_change_result"] = ""; if ($_SESSION["prefs_op_result"] == "reset-to-defaults") { - print "
- Your configuration was reset to defaults. -
"; + print format_notice("The configuration was reset to defaults."); } if ($_SESSION["prefs_op_result"] == "save-config") { - print "
- Your configuration was saved successfully. -
"; + print format_notice("The configuration was saved."); } $_SESSION["prefs_op_result"] = ""; diff --git a/tt-rss.css b/tt-rss.css index 37c22281..73c47598 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -229,12 +229,15 @@ input.editbox { display : none; float : right; font-size : 9pt; - text-align : center; z-index : 999; -moz-border-radius : 2px; padding : 5px 5px 5px 5px; } +#notify img { + vertical-align : middle; +} + .notify { border-color : #d7c47a; background-color : #fff7d5; @@ -566,20 +569,28 @@ div.prefsTabSelected { text-align : center; } -div.warning { - background : #fff7d5; - border : 1px solid #d7c47a; +div.notice { + background : #ffffff; + border : 1px solid #88b0f0; + width : 50%; padding : 5px; margin : 0px 0px 5px 0px; font-size : 9pt; } -div.notice { - background : #ffffff; - border : 1px solid #88b0f0; +div.warning { + background : #fff7d5; + border : 1px solid #d7c47a; + font-size : 9pt; + width : 50%; padding : 5px; margin : 0px 0px 5px 0px; - font-size : 9pt; +} + + +div.warning img, div.notice img { + vertical-align : middle; + padding : 5px; } div.error { @@ -1468,3 +1479,7 @@ ul.headlineDropdownMenu ul li:hover { cursor : pointer; display : none; } + +a.helpLinkPic { + float : right; +} diff --git a/tt-rss.js b/tt-rss.js index 32c8c766..b9f3af11 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -552,7 +552,7 @@ function parse_runtime_info(elem) { } if (k == "daemon_is_running" && v != 1) { - notify("Warning: Update daemon is not runing.", true, true); + notify("Update daemon is not runing.", true, true); } /* var w = document.getElementById("noDaemonWarning");