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

Closes #4434: Enable highlighting devices within rack elevations

This commit is contained in:
jeremystretch
2022-06-24 11:04:38 -04:00
parent f9d81fd362
commit fc02e15fb1
10 changed files with 77 additions and 26 deletions

View File

@ -370,7 +370,8 @@ class Rack(NetBoxModel):
legend_width=RACK_ELEVATION_DEFAULT_LEGEND_WIDTH,
margin_width=RACK_ELEVATION_DEFAULT_MARGIN_WIDTH,
include_images=True,
base_url=None
base_url=None,
highlight_params=None
):
"""
Return an SVG of the rack elevation
@ -394,7 +395,8 @@ class Rack(NetBoxModel):
margin_width=margin_width,
user=user,
include_images=include_images,
base_url=base_url
base_url=base_url,
highlight_params=highlight_params
)
return elevation.render(face)