diff --git a/assets/style.css b/assets/style.css index a76d938..b4794bd 100644 --- a/assets/style.css +++ b/assets/style.css @@ -19,6 +19,10 @@ main { margin-top: 70px; } +.nofiles { + color: #888; +} + #tooltip { background-color: white; z-index: 200; diff --git a/index_main.php b/index_main.php index cc5828e..6d25a0d 100644 --- a/index_main.php +++ b/index_main.php @@ -75,11 +75,16 @@ foreach ($allVars as $family => $models) { echo ''; $refVersions = $db->getAllVersionsForRef($ref); $allOta = $db->getAllVersionsForRef($ref, $db::OTA_ONLY); + $allFull = $db->getAllVersionsForRef($ref, $db::FULL_ONLY); foreach ($allVersions as $v) { if (in_array($v, $refVersions, true)) { $moreClasses = ''; - if (!in_array($v, $allOta)) { + if (!in_array($v, $allOta) && !in_array($v, $allFull)) { + $moreClasses = ' nofiles'; + } elseif (!in_array($v, $allOta)) { $moreClasses = ' fullonly mdc-theme--secondary-dark'; + } elseif (!in_array($v, $allFull)) { + $moreClasses = ' otaonly mdc-theme--primary-dark'; } echo '