mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 03:25:56 +00:00
tweak feed errors notification
This commit is contained in:
@@ -240,6 +240,36 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($id == "feedUpdateErrors") {
|
||||||
|
|
||||||
|
print "<div id=\"infoBoxTitle\">Update Errors</div>";
|
||||||
|
print "<div class=\"infoBoxContents\">";
|
||||||
|
|
||||||
|
print "These feeds have not been updated because of errors:";
|
||||||
|
|
||||||
|
$result = db_query($link, "SELECT id,title,feed_url,last_error
|
||||||
|
FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]);
|
||||||
|
|
||||||
|
print "<ul class='nomarks'>";
|
||||||
|
|
||||||
|
while ($line = db_fetch_assoc($result)) {
|
||||||
|
print "<li><b>" . $line["title"] . "</b> (" . $line["feed_url"] . "): " .
|
||||||
|
"<em>" . $line["last_error"] . "</em>";
|
||||||
|
}
|
||||||
|
|
||||||
|
print "</ul>";
|
||||||
|
print "</div>";
|
||||||
|
|
||||||
|
print "<div align='center'>";
|
||||||
|
|
||||||
|
print "<input class=\"button\"
|
||||||
|
type=\"submit\" onclick=\"return closeInfoBox()\"
|
||||||
|
value=\"Close\">";
|
||||||
|
|
||||||
|
print "</div>";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -710,31 +710,16 @@
|
|||||||
|
|
||||||
if ($quiet) return;
|
if ($quiet) return;
|
||||||
|
|
||||||
// print "<h3>Edit Feeds</h3>";
|
$result = db_query($link, "SELECT COUNT(id) AS num_errors
|
||||||
|
|
||||||
$result = db_query($link, "SELECT id,title,feed_url,last_error
|
|
||||||
FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]);
|
FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]);
|
||||||
|
|
||||||
if (db_num_rows($result) > 0) {
|
$num_errors = db_fetch_result($result, 0, "num_errors");
|
||||||
|
|
||||||
print "<div class=\"warning\">";
|
|
||||||
|
|
||||||
// print"<img class=\"closeButton\"
|
|
||||||
// onclick=\"javascript:hideParentElement(this);\" src=\"images/close.png\">";
|
|
||||||
|
|
||||||
print "<a href=\"javascript:showBlockElement('feedUpdateErrors')\">
|
|
||||||
<b>Some feeds have update errors (click for details)</b></a>";
|
|
||||||
|
|
||||||
print "<ul id=\"feedUpdateErrors\" class=\"nomarks\">";
|
if ($num_errors > 0) {
|
||||||
|
|
||||||
while ($line = db_fetch_assoc($result)) {
|
|
||||||
print "<li>" . $line["title"] . " (" . $line["feed_url"] . "): " .
|
|
||||||
$line["last_error"];
|
|
||||||
}
|
|
||||||
|
|
||||||
print "</ul>";
|
|
||||||
print "</div>";
|
|
||||||
|
|
||||||
|
print "<a href=\"javascript:showFeedsWithErrors()\"
|
||||||
|
class=\"feedUpdErrLink\">Some feeds have update errors (click
|
||||||
|
for details)</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$feed_search = db_escape_string($_GET["search"]);
|
$feed_search = db_escape_string($_GET["search"]);
|
||||||
|
|||||||
4
prefs.js
4
prefs.js
@@ -1544,3 +1544,7 @@ function editFeedCats() {
|
|||||||
xmlhttp.onreadystatechange=infobox_callback;
|
xmlhttp.onreadystatechange=infobox_callback;
|
||||||
xmlhttp.send(null);
|
xmlhttp.send(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showFeedsWithErrors() {
|
||||||
|
displayDlg('feedUpdateErrors');
|
||||||
|
}
|
||||||
|
|||||||
@@ -1307,3 +1307,9 @@ div.return a:hover {
|
|||||||
bottom : 2px;
|
bottom : 2px;
|
||||||
right : 2px;
|
right : 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.feedUpdErrLink {
|
||||||
|
color : #ff0000;
|
||||||
|
display : block;
|
||||||
|
margin-bottom : 0.5em;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user