Fixes #20264: Update plugin title rendering with default icon #1310

Closed
opened 2026-04-05 23:18:24 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 9/5/2025

Fixes: #20264

Summary

  • Replace inline plugin title markup with a reusable template in template_code.py.
  • Add a default core SVG icon used when no plugin icon is provided.
  • Keep title_long as a TemplateColumn using the template; remove redundant render_title_long().
  • Correct order_by from nametitle_long.

Impact

  • UI-only; no API/DB changes.
  • Deduplicates logic and ensures consistent icon rendering.
  • Catalog/author-supplied icon_url still overrides the default.
*Originally created by @pheus on 9/5/2025* ### Fixes: #20264 <!-- Please include a summary of the proposed changes below. --> **Summary** - Replace inline plugin title markup with a reusable template in `template_code.py`. - Add a **default core SVG icon** used when no plugin icon is provided. - Keep `title_long` as a `TemplateColumn` using the template; remove redundant `render_title_long()`. - Correct `order_by` from `name` → `title_long`. **Impact** - UI-only; no API/DB changes. - Deduplicates logic and ensures consistent icon rendering. - Catalog/author-supplied `icon_url` still overrides the default.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1310