{% comment %} HTMX fragment: device list for a single tenant node in the certificate map. Context: devices - list of device dicts from CertificateTopologyBuilder {% endcomment %} {% for device in devices %}
{% if device.type == "service" %} {% elif device.type == "device" %} {% elif device.type == "virtualmachine" %} {% else %} {% endif %} {% if device.url %} {{ device.name }} {% else %} {{ device.name }} {% endif %} {% if device.parent_name %} on {% if device.parent_url %}{{ device.parent_name }}{% else %}{{ device.parent_name }}{% endif %} {% endif %}
{% for cert in device.certificates %}
{{ cert.common_name }} {% if cert.is_primary %}Primary{% endif %} {% if cert.days_remaining != None %} {% if cert.days_remaining >= 0 %} {{ cert.days_remaining }}d remaining {% else %} expired {% endif %} {% endif %}
{% endfor %}
{% empty %}
No devices found.
{% endfor %}