{% load static %} {% block head %} {% if use_svg %} {% else %} {% endif %} {% endblock %} {% block content %}

Deviceview {{ object.name }}

{% spaceless %} {% if use_svg %} {# ── SVG rendering path ── #} {# svg_panels is [(pos, svg_markup)] pre-built in template_content.py with #} {# fallback for patch panels whose ports_chassis keys don't match svg_views #} {% for panel_pos, svg_markup in svg_panels %}

Device {{ panel_pos }}

{% autoescape off %}{{ svg_markup }}{% endautoescape %}
{% endfor %} {% else %} {# ── CSS Grid rendering path (unchanged) ── #} {% for switch, interfaces in ports_chassis.items %} Device {{switch}} {% endfor %} {% endif %} {% endspaceless %}
{% if use_svg %} {# ── SVG interactivity script ── #} {% endif %} {% endblock %}