prefs: show feed errors in feedlist, infobox coloring fixes

master
Andrew Dolgov 18 years ago
parent 442d77f1cc
commit 365f95dc87

@ -47,7 +47,7 @@
print "<form id='feed_add_form' onsubmit='return false'>"; print "<form id='feed_add_form' onsubmit='return false'>";
print "<input type=\"hidden\" name=\"op\" value=\"pref-feeds\">"; print "<input type=\"hidden\" name=\"op\" value=\"pref-feeds\">";
print "<input type=\"hidden\" name=\"quiet\" value=\"0\">"; /* print "<input type=\"hidden\" name=\"quiet\" value=\"1\">"; */
print "<input type=\"hidden\" name=\"subop\" value=\"add\">"; print "<input type=\"hidden\" name=\"subop\" value=\"add\">";
print "<input type=\"hidden\" name=\"from\" value=\"tt-rss\">"; print "<input type=\"hidden\" name=\"from\" value=\"tt-rss\">";

@ -805,6 +805,7 @@
substring(F1.last_updated,1,16) AS last_updated, substring(F1.last_updated,1,16) AS last_updated,
F1.parent_feed, F1.parent_feed,
F1.update_interval, F1.update_interval,
F1.last_error,
F1.purge_interval, F1.purge_interval,
F1.cat_id, F1.cat_id,
F2.title AS parent_title, F2.title AS parent_title,
@ -864,6 +865,8 @@
$hidden = sql_bool_to_bool($line["hidden"]); $hidden = sql_bool_to_bool($line["hidden"]);
$last_error = $line["last_error"];
if (!$edit_cat) $edit_cat = __("Uncategorized"); if (!$edit_cat) $edit_cat = __("Uncategorized");
$last_updated = $line["last_updated"]; $last_updated = $line["last_updated"];
@ -933,6 +936,12 @@
$last_article = "<span class=\"insensitive\">$last_article</span>"; $last_article = "<span class=\"insensitive\">$last_article</span>";
} }
if ($last_error) {
$edit_title = "<span class=\"feed_error\">$edit_title ($last_error)</span>";
$last_updated = "<span class=\"feed_error\">$last_updated</span>";
$last_article = "<span class=\"feed_error\">$last_article</span>";
}
$parent_title = $line["parent_title"]; $parent_title = $line["parent_title"];
if ($parent_title) { if ($parent_title) {
$parent_title = "<span class='groupPrompt'>(linked to $parent_title = "<span class='groupPrompt'>(linked to

@ -521,7 +521,7 @@ div.infoBoxContents td {
} }
div.infoBoxContents a { div.infoBoxContents a {
color : #4684ff; color : #527040;
} }
div.infoBoxContents a:hover { div.infoBoxContents a:hover {
@ -655,6 +655,10 @@ table.innerLoginForm td {
padding : 3px 3px 5px 3px; padding : 3px 3px 5px 3px;
} }
span.feed_error {
color : red;
}
span.insensitive, div.insensitive { span.insensitive, div.insensitive {
color : gray; color : gray;
} }
@ -921,7 +925,7 @@ ul.feedErrorsList {
height : 300px; height : 300px;
overflow : auto; overflow : auto;
list-style-type : none; list-style-type : none;
border : 1px solid #88b0f0; border : 1px solid #99d67a;
background-color : white; background-color : white;
margin : 0px 0px 5px 0px; margin : 0px 0px 5px 0px;
padding : 0px; padding : 0px;

Loading…
Cancel
Save