{% from "ui/_table_macros.html" import copy_chip with context %} {# Column order is identity (MAC, Labels) -> configuration (Image, Boot) -> timeline (Last seen, Last IP, Last flashed) -> actions. Labels sits next to MAC because the two answer "which machine is this?"; Image / Boot say "what is it set up to do?"; the trailing three are the observed-state slice. #} {{ m.mac }} {% if m.labels %} {% for tag in m.labels %} {{ tag }} {% endfor %} {% else %} - {% endif %} {% if m.bty_image_ref %} {{ copy_chip(m.bty_image_ref, shown=m.bty_image_ref[:12] ~ '...') }} {% else %} discovered {% endif %} {% if m.boot_mode == 'bty-flash-always' %} {{ m.boot_mode }} {% elif m.boot_mode == 'bty-flash-once' %} {{ m.boot_mode }} {% elif m.boot_mode == 'bty-tui' %} {{ m.boot_mode }} {% elif m.boot_mode == 'bty-inventory' %} {{ m.boot_mode }} {% elif m.boot_mode == 'ipxe-exit' %} {{ m.boot_mode }} {% else %} {{ m.boot_mode }} {% endif %} {% set _state = m | boot_state %} {% if _state %}
{{ _state }}
{% endif %} {% if m.last_seen_at %} {{ m.last_seen_at | fmt_ts }} {% else %} never {% endif %} {% if m.last_seen_ip %} {{ m.last_seen_ip }} {% else %} - {% endif %} {% if m.last_flashed_at %} {{ m.last_flashed_at | fmt_ts }} {% else %} - {% endif %} Edit