Merge pull request #3972 from hellerve/veit/fix-3964

Display borders around devices in rack elevations
This commit is contained in:
Jeremy Stretch 2020-01-21 11:40:20 -05:00 committed by GitHub
commit 1d0546b3d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,7 +399,7 @@ class RackElevationHelperMixin:
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 ''
)) ))
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)) hex_color = '#{}'.format(foreground_color(color))
link.add(drawing.text(str(device), insert=text, fill=hex_color)) link.add(drawing.text(str(device), insert=text, fill=hex_color))