[PR #20021] [MERGED] Fixes #19999: Script list dashboard widget now displays correctly #15796

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20021
Author: @jnovinger
Created: 8/4/2025
Status: Merged
Merged: 8/6/2025
Merged by: @bctiemann

Base: mainHead: 19999-script-list-widget-misformatted


📝 Commits (1)

  • 9c6d0d1 Fixes #19999: Script list widget now displays correctly

📊 Changes

4 files changed (+168 additions, -134 deletions)

View changed files

📝 netbox/extras/tests/test_views.py (+18 -0)
📝 netbox/extras/views.py (+10 -3)
netbox/templates/extras/inc/script_list_content.html (+139 -0)
📝 netbox/templates/extras/script_list.html (+1 -131)

📄 Description

Fixes: #19999

  • Extract script list content into reusable partial template
  • Add object-list CSS class for proper embedded table styling
  • Hide module headers and management actions in widget context
  • Use compact buttons with icon-only labels for widgets
  • Add test coverage for embedded parameter handling

The embedded version now renders cleanly in dashboard widgets while preserving full functionality in the main script list page.


🔄 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/20021 **Author:** [@jnovinger](https://github.com/jnovinger) **Created:** 8/4/2025 **Status:** ✅ Merged **Merged:** 8/6/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `main` ← **Head:** `19999-script-list-widget-misformatted` --- ### 📝 Commits (1) - [`9c6d0d1`](https://github.com/netbox-community/netbox/commit/9c6d0d1ddc7f753cbbdc844fc6ba560edde1f674) Fixes #19999: Script list widget now displays correctly ### 📊 Changes **4 files changed** (+168 additions, -134 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/tests/test_views.py` (+18 -0) 📝 `netbox/extras/views.py` (+10 -3) ➕ `netbox/templates/extras/inc/script_list_content.html` (+139 -0) 📝 `netbox/templates/extras/script_list.html` (+1 -131) </details> ### 📄 Description ### Fixes: #19999 - Extract script list content into reusable partial template - Add object-list CSS class for proper embedded table styling - Hide module headers and management actions in widget context - Use compact buttons with icon-only labels for widgets - Add test coverage for embedded parameter handling The embedded version now renders cleanly in dashboard widgets while preserving full functionality in the main script list page. --- <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:24:07 +01:00
adam closed this issue 2025-12-30 00:24:07 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15796