Skip to content

Commit

Permalink
Merge pull request #2230 from digitalocean/2125-device-bay-status
Browse files Browse the repository at this point in the history
Fixes #2125 - Show child status in device bay list
  • Loading branch information
jeremystretch authored Jul 16, 2018
2 parents 9f4c77d + b6e3540 commit ecaba5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions netbox/templates/dcim/device.html
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@
<th class="pk"><input type="checkbox" class="toggle" title="Toggle all" /></th>
{% endif %}
<th>Name</th>
<th>Status</th>
<th colspan="2">Installed Device</th>
<th></th>
</tr>
Expand Down
4 changes: 4 additions & 0 deletions netbox/templates/dcim/inc/devicebay.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
<i class="fa fa-fw fa-{% if devicebay.installed_device %}dot-circle-o{% else %}circle-o{% endif %}"></i> {{ devicebay.name }}
</td>
{% if devicebay.installed_device %}
<td>
<span class="label label-{{ devicebay.installed_device.get_status_class }}">{{ devicebay.installed_device.get_status_display }}</span>
</td>
<td>
<a href="{% url 'dcim:device' pk=devicebay.installed_device.pk %}">{{ devicebay.installed_device }}</a>
</td>
<td>
<span>{{ devicebay.installed_device.device_type.full_name }}</span>
</td>
{% else %}
<td></td>
<td colspan="2">
<span class="text-muted">Vacant</span>
</td>
Expand Down

0 comments on commit ecaba5b

Please sign in to comment.