From 9d3ad675ef0f5ed8d73d6fd832b6f684ce8a7957 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Sun, 17 Dec 2017 19:57:39 +0100 Subject: [PATCH] Show variant description in tooltip. --- index_main.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index_main.php b/index_main.php index b5526a7..296e4b8 100755 --- a/index_main.php +++ b/index_main.php @@ -31,7 +31,13 @@ foreach ($allVars as $family => $models) { $allVersions = $db->getAllVersionsForModel($model); echo ''; foreach ($variants as $ref => $name) { - echo ''; + echo ''; $refVersions = $db->getAllVersionsForRef($ref); $allOta = $db->getAllVersionsForRef($ref, $db::OTA_ONLY); foreach ($allVersions as $v) {
' . $ref . '
'; + if (mb_strlen($name) > 0) { + echo '' . $ref . ''; + } else { + echo $ref; + } + echo '