mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
Merge pull request #3972 from hellerve/veit/fix-3964
Display borders around devices in rack elevations
This commit is contained in:
commit
1d0546b3d1
@ -399,7 +399,7 @@ class RackElevationHelperMixin:
|
||||
device.device_role, device.device_type.display_name,
|
||||
device.device_type.u_height, device.asset_tag or '', device.serial or ''
|
||||
))
|
||||
link.add(drawing.rect(start, end, fill='#{}'.format(color)))
|
||||
link.add(drawing.rect(start, end, style='fill: #{}'.format(color), class_='slot'))
|
||||
hex_color = '#{}'.format(foreground_color(color))
|
||||
link.add(drawing.text(str(device), insert=text, fill=hex_color))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user