Commit Graph
13 Commits
Author SHA1 Message Date
MrBlakeandClaude Sonnet 5 ca1e38a1da ui: place offline SVG button directly beside "SVG herunterladen"
NetBox renders the native download link inside each per-face
elevation card, not through a plugin buttons() extension point, so
there's no server-side hook to inject a matching link next to it. The
right_page() extension now emits only a script (no separate sidebar
panel) that finds every a[href*="render=svg"] link, reads its face=
param, and inserts a matching "SVG offline" button right after it. The
button's href stays in sync with the rack-view select the same way
the previous panel's links did.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 16:13:40 +02:00
MrBlakeandClaude Sonnet 5 c722abe497 fix: move offline SVG export from buttons() to right_page()
The buttons() plugin-template-extension hook was registered for
dcim.rack and rendered without error, but the button HTML never
appeared on the rendered rack detail page in production — NetBox's
Rack detail template apparently doesn't wire the buttons() slot into
its controls row. right_page() is confirmed working for this plugin
already (the device rack-width panel uses it), so the export links
now render there as a small card instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 15:10:33 +02:00
MrBlakeandClaude Sonnet 5 3768417be6 feat: add offline SVG export for rack elevations
Adds a "SVG offline" download button on the rack detail page. It
reuses NetBox's own rack-elevation REST endpoint to render the SVG,
then strips embedded <a>/xlink:href links (which point at internal,
relative NetBox URLs and are useless once the file is saved) so the
result renders identically when opened standalone in any SVG viewer.

Gated by the new offline_svg_export_enabled plugin setting (on by
default).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 14:22:04 +02:00
MrBlake bd748ef985 feat: assign VLANs to network connections 2026-08-19 12:24:40 +02:00
MrBlake e42580d651 fix: bind rack integrations to rendered devices 2026-08-13 10:51:59 +02:00
MrBlake 70825c4040 feat: integrate rack widths across plugins 2026-08-12 17:12:19 +02:00
MrBlake a504341442 feat: support partial-width rack devices 2026-08-12 10:38:54 +02:00
MrBlake d54fc646ee feat: add bulk images and tenant autofill 2026-08-03 15:35:44 +02:00
MrBlake 5a2276aec9 fix: replace sidebar controls with resize handle 2026-07-31 11:11:19 +02:00
MrBlake 6b36184f9d feat: add collapsible resizable navigation 2026-07-31 10:25:47 +02:00
MrBlake 8a86ca28f7 feat: add bulk module installation 2026-07-30 16:00:31 +02:00
MrBlake 35e06ee004 feat: add tenant groups and required tenancy 2026-07-28 16:57:52 +02:00
MrBlake 54f6a3f6c9 feat: add personalized navigation and tenant filtering 2026-07-28 16:40:50 +02:00