diff options
author | Simon Rettberg | 2021-10-18 16:09:03 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-10-18 16:09:03 +0200 |
commit | d2edc57cda4da452013631beeb10c758df12ee9c (patch) | |
tree | ba9baceaaba13b96d027ac1495febee0847a7472 /modules-available/passthrough/page.inc.php | |
parent | [statistics] lang (diff) | |
download | slx-admin-d2edc57cda4da452013631beeb10c758df12ee9c.tar.gz slx-admin-d2edc57cda4da452013631beeb10c758df12ee9c.tar.xz slx-admin-d2edc57cda4da452013631beeb10c758df12ee9c.zip |
[statistica] Query support etc.
Diffstat (limited to 'modules-available/passthrough/page.inc.php')
-rw-r--r-- | modules-available/passthrough/page.inc.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules-available/passthrough/page.inc.php b/modules-available/passthrough/page.inc.php index 3ab0696e..7dcc8215 100644 --- a/modules-available/passthrough/page.inc.php +++ b/modules-available/passthrough/page.inc.php @@ -68,6 +68,7 @@ class Page_Passthrough extends Page $q = new HardwareQuery(HardwareInfo::PCI_DEVICE, null, false); $q->addGlobalColumn('vendor'); $q->addGlobalColumn('device'); + $q->addGlobalColumn('rev'); $q->addGlobalColumn('class'); $q->addGlobalColumn('@PASSTHROUGH'); $rows = []; @@ -110,10 +111,11 @@ class Page_Passthrough extends Page $missing[$row['vendor'] . ':' . $row['device']] = true; } } - Render::addTemplate('hardware-list', [ - 'list' => $finalRows, - 'missing_ids' => json_encode(array_keys($missing)), - ]); + Render::addTemplate('hardware-list', ['list' => $finalRows]); + if (!empty($missing)) { + Render::addTemplate('js-pciquery', + ['missing_ids' => json_encode(array_keys($missing))], 'statistics'); + } } /* |