- user web: style server status page with CSS, some cleanup of the stylesheet (fix #457).

svn path=/trunk/boinc/; revision=14078
This commit is contained in:
Rytis Slatkevičius 2007-11-03 16:39:23 +00:00
parent 87c0f98b10
commit 6fd7ba0532
3 changed files with 43 additions and 32 deletions

View File

@ -10440,3 +10440,11 @@ David 2 Nov 2007
schema.sql
html/user/
forum_pm.php
Rytis 3 Nov 2007
- user web: style server status page with CSS, some cleanup of the
stylesheet (based on ticket #457).
html/
ops/sample_server_status.php
user/white.css

View File

@ -94,13 +94,13 @@ function show_status($host, $function, $running) {
$htmlstring = "<tr><td>$function</td><td>$host</td>";
if ($running == 1) {
$xmlstring .= " <status>running</status>\n";
$htmlstring .= "<td bgcolor=00ff00>Running</td>\n";
$htmlstring .= "<td class=\"running\">Running</td>\n";
} elseif ($running == 0) {
$xmlstring .= " <status>not running</status>\n";
$htmlstring .= "<td bgcolor=ff0000>Not Running</td>\n";
$htmlstring .= "<td class=\"notrunning\">Not Running</td>\n";
} else {
$xmlstring .= " <status>disabled</status>\n";
$htmlstring .= "<td bgcolor=ff8800>Disabled</td>\n";
$htmlstring .= "<td class=\"disabled\">Disabled</td>\n";
}
$xmlstring .= " </daemon>\n";
$htmlstring .= "</tr>\n";

View File

@ -1,12 +1,4 @@
a:link {
color: blue;
}
a:visited {
color: blue;
}
a:active {
a:link, a:visited, a:active {
color: blue;
}
@ -17,7 +9,6 @@ body , table , select {
}
body {
background-color: white;
color: black;
}
@ -101,12 +92,12 @@ a.navbar:hover {
}
tr.row0 {
background-color: rgb(217,217,217);
background-color: #d9d9d9;
text-align: left;
}
tr.row1 {
background-color: rgb(237,237,237);
background-color: #eeeeee;
text-align: left;
}
@ -116,7 +107,7 @@ tr.subtitle {
}
tr.message {
background-color:#E0E0EF;
background-color: #e0e0e0;
}
input, select {
@ -233,10 +224,23 @@ td.threadline {
text-align:left;
}
td.running {
background-color: #00ff00;
}
td.notrunning {
background-color: #ff0000;
}
td.disabled {
background-color: #ff8800;
}
span.note {
font-weight: normal;
font-size: 0.9em;
}
span.news_date {
color: rgb(100,100,100);
font-size: 0.9em;
@ -315,4 +319,3 @@ span.news_date {
input.btn {
padding:0px 2px;
}