mirror of
https://github.com/mbirth/tcl_update_db.git
synced 2024-12-27 04:54:08 +00:00
Better colour coding: Version without files (in db): grey; Only FULL:
orange; Only OTA: dark green.
This commit is contained in:
parent
41137663db
commit
de84632d5b
@ -19,6 +19,10 @@ main {
|
|||||||
margin-top: 70px;
|
margin-top: 70px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nofiles {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
#tooltip {
|
#tooltip {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
|
@ -75,11 +75,16 @@ foreach ($allVars as $family => $models) {
|
|||||||
echo '</th>';
|
echo '</th>';
|
||||||
$refVersions = $db->getAllVersionsForRef($ref);
|
$refVersions = $db->getAllVersionsForRef($ref);
|
||||||
$allOta = $db->getAllVersionsForRef($ref, $db::OTA_ONLY);
|
$allOta = $db->getAllVersionsForRef($ref, $db::OTA_ONLY);
|
||||||
|
$allFull = $db->getAllVersionsForRef($ref, $db::FULL_ONLY);
|
||||||
foreach ($allVersions as $v) {
|
foreach ($allVersions as $v) {
|
||||||
if (in_array($v, $refVersions, true)) {
|
if (in_array($v, $refVersions, true)) {
|
||||||
$moreClasses = '';
|
$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';
|
$moreClasses = ' fullonly mdc-theme--secondary-dark';
|
||||||
|
} elseif (!in_array($v, $allFull)) {
|
||||||
|
$moreClasses = ' otaonly mdc-theme--primary-dark';
|
||||||
}
|
}
|
||||||
echo '<td class="version' . $moreClasses . '">' . $v . '</td>';
|
echo '<td class="version' . $moreClasses . '">' . $v . '</td>';
|
||||||
} else {
|
} else {
|
||||||
|
@ -139,7 +139,7 @@ class SQLiteReader
|
|||||||
$result = $stmt->fetchAll(\PDO::FETCH_ASSOC);
|
$result = $stmt->fetchAll(\PDO::FETCH_ASSOC);
|
||||||
$version = array();
|
$version = array();
|
||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
if (!is_null($row['fv'])) {
|
if (!is_null($row['fv']) && $which == self::BOTH) {
|
||||||
$version[] = $row['fv'];
|
$version[] = $row['fv'];
|
||||||
}
|
}
|
||||||
$version[] = $row['tv'];
|
$version[] = $row['tv'];
|
||||||
|
Loading…
Reference in New Issue
Block a user