mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 12:06:53 -06:00
Fixes #4489: Fix display of parent/child role on device type view
This commit is contained in:
parent
2dbc04c6fb
commit
788909de94
@ -1,5 +1,13 @@
|
|||||||
# NetBox v2.8
|
# NetBox v2.8
|
||||||
|
|
||||||
|
## v2.8.1 (FUTURE)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#4489](https://github.com/netbox-community/netbox/issues/4489) - Fix display of parent/child role on device type view
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## v2.8.0 (2020-04-13)
|
## v2.8.0 (2020-04-13)
|
||||||
|
|
||||||
**NOTE:** Beginning with release 2.8.0, NetBox requires Python 3.6 or later.
|
**NOTE:** Beginning with release 2.8.0, NetBox requires Python 3.6 or later.
|
||||||
|
@ -102,13 +102,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Parent/Child</td>
|
<td>Parent/Child</td>
|
||||||
<td>
|
<td>
|
||||||
{% if devicetype.subdevice_role == True %}
|
{{ devicetype.get_subdevice_role_display|placeholder }}
|
||||||
<label class="label label-primary">Parent</label>
|
|
||||||
{% elif devicetype.subdevice_role == False %}
|
|
||||||
<label class="label label-info">Child</label>
|
|
||||||
{% else %}
|
|
||||||
<span class="text-muted">—</span>
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user