{# SPDX-License-Identifier: Apache-2.0 #} {# Copyright (C) 2025 Marcin Zieba #} {# One Device/NetBox diff cell. Highlight the changed tokens (hl = the device/netbox marker #} {# class); the absent side renders its "—" placeholder plain. Expects: value, segments, hl. #} {% if segments %}{% for s in segments %}{% if s.changed %}{{ s.text }}{% else %}{{ s.text }}{% endif %}{% endfor %}{% else %}{{ value }}{% endif %}