mark feed with error in headlines toolbar, use error icon in feed editor
This commit is contained in:
parent
c2e90f5c2d
commit
1a545dcb44
3 changed files with 8 additions and 9 deletions
|
@ -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 " <span title=\"".htmlspecialchars($last_error)."\"
|
print " <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,9 +352,9 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#headlines-toolbar span.r a {
|
div#headlines-toolbar span.r a {
|
||||||
color : #555;
|
color : #555;
|
||||||
|
|
Loading…
Reference in a new issue