Add support for devices that are 'in testing' to the banner display.

In testing devices should be listed with a -2 status
This commit is contained in:
Conrad Lara - KG6JEI 2014-03-26 21:47:54 -07:00
parent c59a9e6101
commit f6d81b25c2
1 changed files with 3 additions and 0 deletions

View File

@ -1036,6 +1036,9 @@ sub alert_banner
if (is_hardware_supported() == 0 ){
print "<div style=\"padding:5px;background-color:#FF4719;border:1px solid #ccc;width:600px;\"><a href=\"/cgi-bin/sysinfo\">!!!! UNSUPPORTED DEVICE !!!!</a></div>\n";
}
elsif ( is_hardware_supported() == -2 ){
print "<div style=\"padding:5px;background-color:#FFFF00;border:1px solid #ccc;width:600px;\"><a href=\"/cgi-bin/sysinfo\"> !!!! THIS DEVICE IS STILL BEING TESTED !!!!</a></div>\n";
}
else {
print "<div style=\"padding:5px;background-color:#FFFF00;border:1px solid #ccc;width:600px;\"><a href=\"/cgi-bin/sysinfo\">!!!! UNTESTED HARDWARE !!!!</a></div>\n";
}