{# Kafka-UI deep-link icon macro. Renders a small Kafka SVG anchor that opens Kafka-UI (provectus) filtered to one message in a new tab. Returns nothing (empty) when the feature is not configured, so callers don't need to guard their own code. Usage: {% from '_kafka_ui_icon.html' import kafka_ui_icon %} {{ kafka_ui_icon(topic, partition, offset) }} The SVG path matches the one in base.html's nav header for visual consistency. Sized at 14px (smaller than the 20px nav icon) so inline placement next to a monospace label doesn't dominate the line. #} {% macro kafka_ui_icon(topic, partition, offset) -%} {%- set url = kafka_ui_message_url(topic, partition, offset) -%} {%- if url -%} {%- endif -%} {%- endmacro %}