add bitlock to mobile view
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
Simon Smith committed
Oct 3, 2023 at 13:10 UTC
d19e456efbc4413fbee1d75bb96c2c0ade45fb84
1 file changed
+15
views/default-mobile.handlebars
+15
@@ -5840,6 +5840,21 @@
5840
x += addDetailItem("Antivirus", y.join('<br />'));
5841
}
5842
5843
+ // Volumes and Bitlocker
5844
+ if (node.volumes){
5845
+ var bitlocker = [];
5846
+ for (var i in node.volumes) {
5847
+ if (typeof node.volumes[i].protectionStatus !== 'undefined' && node.volumes[i].protectionStatus == 'On'){
5848
+ bitlocker.push(i + ' - <span style=color:green>' + node.volumes[i].volumeStatus + '</span>');
5849
+ }else if (typeof node.volumes[i].protectionStatus !== 'undefined'){
5850
+ bitlocker.push(i + ' - <span style=color:red>' + node.volumes[i].volumeStatus + '</span>');
5851
+ }
5852
+ }
5853
+ if(bitlocker.length > 0){
5854
+ x += addDetailItem("BitLocker", bitlocker.join('<br />'));
5855
+ }
5856
+ }
5857
+
5858
if (x != '') { sections.push({ name: "Operating System", html: x, img: 'software' }); }
5859
}
5860