[PR #12664] [CLOSED] Dashboard tweaks #14029

Closed
opened 2025-12-29 23:22:08 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12664
Author: @jsenecal
Created: 5/19/2023
Status: Closed

Base: developHead: dashboard-tweaks


📝 Commits (8)

  • 3e852ac Allow render_markdown to have custom css classes
  • 725c0b5 Various CSS and layout tweaks
  • bca3021 Better handling of the grid manipulation buttons
  • 121e5c2 Hide grid stack buttons when dashboard is locked
  • 7d56683 Support configuring card icon on dashboard
  • b03ce4d Oops, globe is from font-awesome
  • b891bd1 Docs and defaults
  • 41d6caa White text color on Cards with a dark-ish header

📊 Changes

17 files changed (+138 additions, -43 deletions)

View changed files

📝 docs/configuration/default-values.md (+9 -1)
📝 netbox/extras/constants.py (+15 -8)
📝 netbox/extras/dashboard/forms.py (+5 -1)
📝 netbox/extras/dashboard/utils.py (+1 -0)
📝 netbox/extras/dashboard/widgets.py (+4 -2)
📝 netbox/project-static/dist/netbox-dark.css (+1 -1)
📝 netbox/project-static/dist/netbox-light.css (+1 -1)
📝 netbox/project-static/dist/netbox-print.css (+1 -1)
📝 netbox/project-static/dist/netbox.js (+8 -8)
📝 netbox/project-static/dist/netbox.js.map (+1 -1)
📝 netbox/project-static/src/dashboard.ts (+22 -1)
📝 netbox/project-static/styles/netbox.scss (+37 -1)
📝 netbox/templates/extras/dashboard/widget.html (+9 -6)
📝 netbox/templates/extras/dashboard/widgets/objectcounts.html (+2 -2)
📝 netbox/templates/extras/dashboard/widgets/objectlist.html (+3 -3)
📝 netbox/templates/home.html (+6 -3)
📝 netbox/utilities/templatetags/builtins/filters.py (+13 -3)

📄 Description

Fixes https://github.com/netbox-community/netbox/issues/12219

  • fixes CSS so that the dashboard look and feel more consistent within netbox
  • fixes header contrast when no color is selected (https://github.com/netbox-community/netbox/issues/12219)
  • fixes scrollbars in cards where applicable
  • makes the cards look like they were in 3.4 (beefier header)
  • allows for an icon to be added to the card title
  • hides the modification buttons when the dashboard is locked

🔄 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/12664 **Author:** [@jsenecal](https://github.com/jsenecal) **Created:** 5/19/2023 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `dashboard-tweaks` --- ### 📝 Commits (8) - [`3e852ac`](https://github.com/netbox-community/netbox/commit/3e852acc8ec48f5b7d32811f4d9dec0ccdfa5970) Allow render_markdown to have custom css classes - [`725c0b5`](https://github.com/netbox-community/netbox/commit/725c0b56c76a12d458bcba04724b2e80c98b6038) Various CSS and layout tweaks - [`bca3021`](https://github.com/netbox-community/netbox/commit/bca302184d2bc23dd7566f8e2647abaf0a24c932) Better handling of the grid manipulation buttons - [`121e5c2`](https://github.com/netbox-community/netbox/commit/121e5c2c91b25629340e9767edeb2509267a9e3b) Hide grid stack buttons when dashboard is locked - [`7d56683`](https://github.com/netbox-community/netbox/commit/7d566837b6700acc904711952f50606a4ae2fec1) Support configuring card icon on dashboard - [`b03ce4d`](https://github.com/netbox-community/netbox/commit/b03ce4d1d640f65c057f3f9cb5d218d9c1e4fe03) Oops, `globe` is from font-awesome - [`b891bd1`](https://github.com/netbox-community/netbox/commit/b891bd1889e4cf99cc440c91b1f6678c4139c2f5) Docs and defaults - [`41d6caa`](https://github.com/netbox-community/netbox/commit/41d6caa5ef0c954eca18fdc3eef1f02be6648929) White text color on Cards with a dark-ish header ### 📊 Changes **17 files changed** (+138 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `docs/configuration/default-values.md` (+9 -1) 📝 `netbox/extras/constants.py` (+15 -8) 📝 `netbox/extras/dashboard/forms.py` (+5 -1) 📝 `netbox/extras/dashboard/utils.py` (+1 -0) 📝 `netbox/extras/dashboard/widgets.py` (+4 -2) 📝 `netbox/project-static/dist/netbox-dark.css` (+1 -1) 📝 `netbox/project-static/dist/netbox-light.css` (+1 -1) 📝 `netbox/project-static/dist/netbox-print.css` (+1 -1) 📝 `netbox/project-static/dist/netbox.js` (+8 -8) 📝 `netbox/project-static/dist/netbox.js.map` (+1 -1) 📝 `netbox/project-static/src/dashboard.ts` (+22 -1) 📝 `netbox/project-static/styles/netbox.scss` (+37 -1) 📝 `netbox/templates/extras/dashboard/widget.html` (+9 -6) 📝 `netbox/templates/extras/dashboard/widgets/objectcounts.html` (+2 -2) 📝 `netbox/templates/extras/dashboard/widgets/objectlist.html` (+3 -3) 📝 `netbox/templates/home.html` (+6 -3) 📝 `netbox/utilities/templatetags/builtins/filters.py` (+13 -3) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes https://github.com/netbox-community/netbox/issues/12219 * fixes CSS so that the dashboard look and feel more consistent within netbox * fixes header contrast when no color is selected (https://github.com/netbox-community/netbox/issues/12219) * fixes scrollbars in cards where applicable * makes the cards look like they were in 3.4 (beefier header) * allows for an icon to be added to the card title * hides the modification buttons when the dashboard is locked --- <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-29 23:22:08 +01:00
adam closed this issue 2025-12-29 23:22:08 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14029