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

Merge pull request #4225 from LuPo/develop

rear rack face doesn't draw if full-height device type assigned only front image
This commit is contained in:
Jeremy Stretch
2020-02-21 09:40:23 -05:00
committed by GitHub

View File

@ -88,7 +88,7 @@ class RackElevationSVG:
drawing.add(drawing.text(str(device), insert=text)) drawing.add(drawing.text(str(device), insert=text))
# Embed rear device type image if one exists # Embed rear device type image if one exists
if self.include_images and device.device_type.front_image: if self.include_images and device.device_type.rear_image:
url = device.device_type.rear_image.url url = device.device_type.rear_image.url
image = drawing.image(href=url, insert=start, size=end, class_='device-image') image = drawing.image(href=url, insert=start, size=end, class_='device-image')
image.stretch() image.stretch()