Explorar o código

Merge pull request #4021 from hellerve/veit/fix-4019

SVG Elevation: Add borders on the rear of devices as well
Jeremy Stretch %!s(int64=6) %!d(string=hai) anos
pai
achega
27d70b6b51
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/dcim/models/__init__.py

+ 1 - 1
netbox/dcim/models/__init__.py

@@ -405,7 +405,7 @@ class RackElevationHelperMixin:
 
     @staticmethod
     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(
             device.device_role, device.device_type.display_name,
             device.device_type.u_height, device.asset_tag or '', device.serial or ''