mark feed with error in headlines toolbar, use error icon in feed editor

master
Andrew Dolgov 12 years ago
parent c2e90f5c2d
commit 1a545dcb44

@ -48,9 +48,11 @@ class Feeds extends Handler_Protected {
// right part // right part
$error_class = $error ? "error" : "";
$reply .= "<span class='r'>"; $reply .= "<span class='r'>";
$reply .= "<span id='selected_prompt'></span>"; $reply .= "<span id='selected_prompt'></span>";
$reply .= "<span id='feed_title'>"; $reply .= "<span id='feed_title' class='$error_class'>";
if ($feed_site_url) { if ($feed_site_url) {
$last_updated = T_sprintf("Last updated: %s", $last_updated = T_sprintf("Last updated: %s",

@ -572,8 +572,9 @@ class Pref_Feeds extends Handler_Protected {
$last_error = $this->dbh->fetch_result($result, 0, "last_error"); $last_error = $this->dbh->fetch_result($result, 0, "last_error");
if ($last_error) { if ($last_error) {
print "&nbsp;<span title=\"".htmlspecialchars($last_error)."\" print "&nbsp;<img src=\"images/error.png\" alt=\"(error)\"
class=\"feed_error\">(error)</span>"; style=\"vertical-align : middle\"
title=\"".htmlspecialchars($last_error)."\">";
} }

@ -320,10 +320,6 @@ div.prefHelp {
padding : 5px; padding : 5px;
} }
span.feed_error {
color : red;
}
.insensitive { .insensitive {
color : #555; color : #555;
} }
@ -356,7 +352,7 @@ div#headlines-toolbar span.r {
text-align : right; text-align : right;
} }
div#headlines-toolbar span.r span.error { #headlines-toolbar span.r .error a {
color : red; color : red;
} }

Loading…
Cancel
Save