[PR #19055] [MERGED] Closes #16630: Enable plugins to embed custom <head> content #15514

Closed
opened 2025-12-30 00:22:24 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19055
Author: @jeremystretch
Created: 4/1/2025
Status: Merged
Merged: 4/1/2025
Merged by: @jnovinger

Base: featureHead: 16630-plugin-template-head


📝 Commits (1)

  • 016c0a2 Closes #16630: Enable plugins to embed custom <head> content

📊 Changes

5 files changed (+21 additions, -0 deletions)

View changed files

📝 docs/plugins/development/views.md (+1 -0)
📝 netbox/netbox/plugins/templates.py (+7 -0)
📝 netbox/netbox/tests/dummy_plugin/template_content.py (+3 -0)
📝 netbox/templates/base/base.html (+2 -0)
📝 netbox/utilities/templatetags/plugins.py (+8 -0)

📄 Description

Fixes: #16630

  • Introduce a head() method on PluginTemplateExtension
  • Introduce the plugin_head template tag & include it within the base template

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/19055 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 4/1/2025 **Status:** ✅ Merged **Merged:** 4/1/2025 **Merged by:** [@jnovinger](https://github.com/jnovinger) **Base:** `feature` ← **Head:** `16630-plugin-template-head` --- ### 📝 Commits (1) - [`016c0a2`](https://github.com/netbox-community/netbox/commit/016c0a2006981403ef5a5a0c80cca40ba9393a89) Closes #16630: Enable plugins to embed custom <head> content ### 📊 Changes **5 files changed** (+21 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/plugins/development/views.md` (+1 -0) 📝 `netbox/netbox/plugins/templates.py` (+7 -0) 📝 `netbox/netbox/tests/dummy_plugin/template_content.py` (+3 -0) 📝 `netbox/templates/base/base.html` (+2 -0) 📝 `netbox/utilities/templatetags/plugins.py` (+8 -0) </details> ### 📄 Description ### Fixes: #16630 - Introduce a `head()` method on PluginTemplateExtension - Introduce the `plugin_head` template tag & include it within the base template --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:22:24 +01:00
adam closed this issue 2025-12-30 00:22:24 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15514