{% extends "base.html" %}
{% macro inventory_label(label) -%}
{%- set text = label|string -%}
{{- t(text, text) if text.startswith('inventory.') else text -}}
{%- endmacro %}
{% macro inventory_icon(label) -%}
{%- set key = (label|string)|lower -%}
{%- if 'system_overview' in key or 'window' in key or key in ['computer', 'system', 'hardware'] -%}🖥️
{%- elif 'processor' in key or 'cpu' in key -%}🧠
{%- elif 'memory' in key or 'ram' in key -%}🧩
{%- elif 'storage' in key or 'drive' in key or 'disk' in key or 'volume' in key or 'partition' in key -%}💾
{%- elif 'graphic' in key or 'gpu' in key or 'video' in key or 'display' in key -%}🎨
{%- elif 'monitor' in key or 'screen' in key -%}🖥️
{%- elif 'network' in key or 'ethernet' in key or 'wifi' in key or 'adapter' in key or 'wlan' in key -%}🌐
{%- elif 'battery' in key -%}🔋
{%- elif 'bios' in key or 'uefi' in key or 'firmware' in key -%}⚙️
{%- elif 'board' in key or 'motherboard' in key or 'mainboard' in key -%}🔌
{%- elif 'audio' in key or 'sound' in key -%}🔊
{%- elif 'usb' in key -%}🔗
{%- elif 'printer' in key -%}🖨️
{%- elif 'software' in key or 'application' in key -%}📦
{%- elif 'os_' in key or 'operating' in key -%}🪟
{%- elif 'antivirus' in key or 'security' in key or 'tpm' in key -%}🛡️
{%- elif 'mesh' in key or 'agent' in key or 'connection' in key -%}🔗
{%- else -%}📁
{%- endif -%}
{%- endmacro %}
{% macro inventory_node(label, value, level=0, path='root') %}
{% set node_path = path ~ '/' ~ (label|string)|replace(' ', '_')|replace('/', '_') %}
{% if value is mapping %}
{{ inventory_label(label) }}{{ value|length }}
{{ inventory_label(label) }}{{ value|length }}
{{ t('mesh.link.section_help', 'The node ID can be changed manually without deleting the asset. Other asset fields are updated only by the next MeshCentral synchronization.') }}
{{ t('jobs.run_definition_help', 'Es werden nur aktive Jobdefinitionen angezeigt, die zur erkannten Plattform dieses Assets passen.') }}
{{ t('jobparams.asset_help') }}
{% if job_definitions %}{{ t('jobparams.none_defined') }}
{% endif %}{{ t('jobs.no_compatible_definitions') }}
{% endif %}{{ t('inventory.subtitle') }}
| {% endif %} | {{ t('common.name') }} | {{ t('about.version') }} | {{ t('software.publisher') }} | {{ t('software.architecture') }} | {{ t('software.platform') }} | {{ t('software.install_date') }} | {{ t('software.last_seen') }} |
|---|---|---|---|---|---|---|---|
| {% endif %} | {{ entry.name }} | {{ entry.version or '' }} | {{ entry.publisher or '' }} | {{ entry.architecture or '' }} | {{ t('software.platform.' ~ (entry.platform or 'unknown'), entry.platform or 'unknown') }} | {{ entry.install_date or '' }} | {% if entry.last_seen_at %}{% else %}{{ '' }}{% endif %} |
{{ raw_inventory|tojson(indent=2) }}{% else %}| {{ t('common.field') }} | {{ t('mesh.local_value') }} | MeshCentral | {{ t('mesh.rule') }} |
|---|---|---|---|
| {{ field }} | {{ conflict.local }} | {{ conflict.meshcentral }} | {{ conflict.rule }} |