diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index 61837bef..5a63fde8 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -6008,6 +6008,29 @@ } } + if (hardware.linux) { + if (hardware.linux.memory && (hardware.linux.memory.Memory_Device.length > 0)) { + var x = ''; + // Sort Memory + hardware.linux.memory.Memory_Device.sort(function(a, b) { if (a.Locator > b.Locator) return 1; if (a.Locator < b.Locator) return -1; return 0; }); + + x += ''; + for (var i in hardware.linux.memory.Memory_Device) { + var m = hardware.linux.memory.Memory_Device[i]; + if(m.Size && (m.Size == 'No Module Installed')) continue; + x += '
'; + x += '
' + EscapeHtml((m.Locator ? m.Locator : 'Unknown')) + '
'; + if (m.Size && m.Speed) { x += addDetailItem("Capacity / Speed", format("{0}, {1}", m.Size, m.Speed), s); } + else if (m.Size) { x += addDetailItem("Capacity", format("{0}", (m.Size)), s); } + if (m.PartNumber) { x += addDetailItem("Part Number", EscapeHtml((m.Manufacturer && m.Manufacturer != 'Undefined')?(m.Manufacturer + ', '):'') + EscapeHtml(m.PartNumber), s); } + x += '
'; + } + x += '
'; + + if (x != '') { sections.push({ name: "Memory", html: x, img: 'ram'}); } + } + } + // Storage if (hardware.identifiers && ident.storage_devices) { var x = ''; diff --git a/views/default.handlebars b/views/default.handlebars index 3c9bc3b2..668833f8 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -11711,6 +11711,29 @@ } } + if (hardware.linux) { + if (hardware.linux.memory && (hardware.linux.memory.Memory_Device.length > 0)) { + var x = ''; + // Sort Memory + hardware.linux.memory.Memory_Device.sort(function(a, b) { if (a.Locator > b.Locator) return 1; if (a.Locator < b.Locator) return -1; return 0; }); + + x += ''; + for (var i in hardware.linux.memory.Memory_Device) { + var m = hardware.linux.memory.Memory_Device[i]; + if(m.Size && (m.Size == 'No Module Installed')) continue; + x += '
'; + x += '
' + EscapeHtml((m.Locator ? m.Locator : 'Unknown')) + '
'; + if (m.Size && m.Speed) { x += addDetailItem("Capacity / Speed", format("{0}, {1}", m.Size, m.Speed), s); } + else if (m.Size) { x += addDetailItem("Capacity", format("{0}", (m.Size)), s); } + if (m.PartNumber) { x += addDetailItem("Part Number", EscapeHtml((m.Manufacturer && m.Manufacturer != 'Undefined')?(m.Manufacturer + ', '):'') + EscapeHtml(m.PartNumber), s); } + x += '
'; + } + x += '
'; + + if (x != '') { sections.push({ name: "Memory", html: x, img: 'ram64.png'}); } + } + } + // Storage if (hardware.identifiers && hardware.identifiers.storage_devices) { var x = '';