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

update templates & rendering for bootstrap 5

This commit is contained in:
checktheroads
2021-03-13 02:27:32 -07:00
parent ec38ec8004
commit 94c25b0ff4
5 changed files with 20 additions and 33 deletions

View File

@ -64,7 +64,7 @@ class RackElevationSVG:
drawing = svgwrite.Drawing(size=(width, height))
# add the stylesheet
with open('{}/css/rack_elevation.css'.format(settings.STATICFILES_DIRS[0])) as css_file:
with open('{}/rack_elevation.css'.format(settings.STATIC_ROOT)) as css_file:
drawing.defs.add(drawing.style(css_file.read()))
# add gradients