1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #4489: Fix display of parent/child role on device type view

This commit is contained in:
Jeremy Stretch
2020-04-14 12:13:05 -04:00
parent 2dbc04c6fb
commit 788909de94
2 changed files with 9 additions and 7 deletions

View File

@@ -102,13 +102,7 @@
<tr>
<td>Parent/Child</td>
<td>
{% if devicetype.subdevice_role == True %}
<label class="label label-primary">Parent</label>
{% elif devicetype.subdevice_role == False %}
<label class="label label-info">Child</label>
{% else %}
<span class="text-muted">&mdash;</span>
{% endif %}
{{ devicetype.get_subdevice_role_display|placeholder }}
</td>
</tr>
<tr>