mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 09:28:38 -06:00
dcim: add borders on the rear of devices as well
This commit is contained in:
parent
7a548e806d
commit
011280b0bf
@ -405,7 +405,7 @@ class RackElevationHelperMixin:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _draw_device_rear(drawing, device, start, end, text):
|
def _draw_device_rear(drawing, device, start, end, text):
|
||||||
rect = drawing.rect(start, end, class_="blocked")
|
rect = drawing.rect(start, end, class_="slot blocked")
|
||||||
rect.set_desc('{} — {} ({}U) {} {}'.format(
|
rect.set_desc('{} — {} ({}U) {} {}'.format(
|
||||||
device.device_role, device.device_type.display_name,
|
device.device_role, device.device_type.display_name,
|
||||||
device.device_type.u_height, device.asset_tag or '', device.serial or ''
|
device.device_type.u_height, device.asset_tag or '', device.serial or ''
|
||||||
|
Loading…
Reference in New Issue
Block a user