Add sub-component support via self-referential device hierarchy
This commit is contained in:
@@ -264,6 +264,10 @@
|
||||
</td>
|
||||
<td data-label="Assigned To">
|
||||
{% if b.device %}
|
||||
{% if b.device.parent %}
|
||||
<a href="{{ url_for('device_detail', device_id=b.device.parent.id) }}">{{ b.device.parent.name }}</a>
|
||||
<span class="text-muted"> / </span>
|
||||
{% endif %}
|
||||
<a href="{{ url_for('device_detail', device_id=b.device.id) }}">{{ b.device.name }}</a>
|
||||
{% if b.device.has_mixed_brands() %}
|
||||
<span class="badge badge-warning" title="Mixed brands in this device">⚠ mixed</span>
|
||||
|
||||
Reference in New Issue
Block a user