mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
cgi-bin: Remove font tags with no effect, and style tags
The font tag is deprecated, so clean up html by removing font tags that have no effect. For font tags that have an effect, move the styling to the tag controlling the text output. The aim is to get one step further towards validating html.
This commit is contained in:
@@ -206,9 +206,9 @@ sub diskbox {
|
||||
|
||||
if ( $status[1]=~/standby/){
|
||||
my $ftime = localtime((stat("/var/run/hddshutdown-$disk"))[9]);
|
||||
print"<b>Disk $disk status:<font color='#FF0000'>".$status[1]."</font></b> ($Lang::tr{'since'} $ftime)";
|
||||
print"<b>Disk $disk status:<span style='color:#FF0000'>".$status[1]."</b> ($Lang::tr{'since'} $ftime)";
|
||||
}else{
|
||||
print"<b>Disk $disk status:<font color='#00FF00'>".$status[1]."</font></b>";
|
||||
print"<b>Disk $disk status:<span style='color:#00FF00'>".$status[1]."</b>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user