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

This commit is contained in:
Andrew Dolgov 2013-07-12 12:38:50 +04:00
parent c2e90f5c2d
commit 1a545dcb44
3 changed files with 8 additions and 9 deletions

View file

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

View file

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

View file

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