{# ==================================================================== #} {# Finding D (v0.4.0): slot ledger table. #} {# #} {# Renders above the SVG on the Device Layout tab when the #} {# SLOT_LEDGER_ENABLED plugin setting is True. Receives one context #} {# variable: #} {# #} {# ledger_sections: list[MountSection] (from ledger.enumerate_ledger)#} {# #} {# Per the v0.4.0 UX decisions (no collapse, bay-empty is informational #} {# not yellow, β-ledger sub-rows under hosted devices). #} {# ==================================================================== #} {% if ledger_sections %}
SLOT_LEDGER_ENABLED=False
| Slot | Size | Device | Role | Type | Bay | Action |
|---|---|---|---|---|---|---|
| {{ row.slot_label }} | {{ row.size_label }} | {% if row.device_url %} {{ row.device_name }} {% elif row.state == 'empty' %} (empty) {% elif row.state == 'bay_empty' or row.state == 'module_empty' %} (bay empty) {% elif row.state == 'dangling' %} {{ row.device_name }} {% else %} {{ row.device_name }} {% endif %} | {{ row.role|default:"—" }} | {{ row.type_name }} | {{ row.bay_label }} | {% if row.action_url %} {{ row.action_label }} {% endif %} |
| ↳ {{ sub.slot_label }} | — | {{ sub.module_name }} | {{ sub.role|default:"—" }} | {{ sub.module_type }} | — |