(
- 'input[type="checkbox"][name="pk"]',
+ 'tr:not(.d-none) input[type="checkbox"][name="pk"]',
)) {
if (tableSelectAll.checked) {
// Check all PK checkboxes if the select all checkbox is checked.
diff --git a/netbox/templates/base/base.html b/netbox/templates/base/base.html
index 71172e901..78dc2b744 100644
--- a/netbox/templates/base/base.html
+++ b/netbox/templates/base/base.html
@@ -6,11 +6,15 @@
lang="en"
data-netbox-url-name="{{ request.resolver_match.url_name }}"
data-netbox-base-path="{{ settings.BASE_PATH }}"
- {% if preferences|get_key:'ui.colormode' == 'dark'%}
- data-netbox-color-mode="dark"
- {% else %}
- data-netbox-color-mode="light"
- {% endif %}
+ {% with preferences|get_key:'ui.colormode' as color_mode %}
+ {% if color_mode == 'dark'%}
+ data-netbox-color-mode="dark"
+ {% elif color_mode == 'light' %}
+ data-netbox-color-mode="light"
+ {% else %}
+ data-netbox-color-mode="unset"
+ {% endif %}
+ {% endwith %}
>
@@ -23,34 +27,55 @@
{% block title %}Home{% endblock %} | NetBox
{# Static resources #}
diff --git a/netbox/templates/circuits/circuit.html b/netbox/templates/circuits/circuit.html
index e68465c82..b863a8a0e 100644
--- a/netbox/templates/circuits/circuit.html
+++ b/netbox/templates/circuits/circuit.html
@@ -72,6 +72,7 @@
{% include 'circuits/inc/circuit_termination.html' with termination=object.termination_a side='A' %}
{% include 'circuits/inc/circuit_termination.html' with termination=object.termination_z side='Z' %}
+ {% include 'inc/image_attachments_panel.html' %}
{% plugin_right_page object %}
diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html
index aa3f834d6..9d1868e1e 100644
--- a/netbox/templates/dcim/device.html
+++ b/netbox/templates/dcim/device.html
@@ -290,22 +290,7 @@
{% endif %}
-
-
-
- {% include 'inc/image_attachments.html' with images=object.images.all %}
-
- {% if perms.extras.add_imageattachment %}
-
- {% endif %}
-
+ {% include 'inc/image_attachments_panel.html' %}
{% include 'inc/custom_fields_panel.html' %}
-
-
-
- {% include 'inc/image_attachments.html' with images=object.images.all %}
-
- {% if perms.extras.add_imageattachment %}
-
- {% endif %}
-
+ {% include 'inc/image_attachments_panel.html' %}
{% plugin_right_page object %}
diff --git a/netbox/templates/dcim/powerpanel.html b/netbox/templates/dcim/powerpanel.html
index c0bfbcf25..b1367aa1e 100644
--- a/netbox/templates/dcim/powerpanel.html
+++ b/netbox/templates/dcim/powerpanel.html
@@ -39,11 +39,12 @@
+ {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='dcim:powerpanel_list' %}
{% plugin_left_page object %}
{% include 'inc/custom_fields_panel.html' %}
- {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='dcim:powerpanel_list' %}
+ {% include 'inc/image_attachments_panel.html' %}
{% plugin_right_page object %}
diff --git a/netbox/templates/dcim/rack.html b/netbox/templates/dcim/rack.html
index 289735200..bf9a11819 100644
--- a/netbox/templates/dcim/rack.html
+++ b/netbox/templates/dcim/rack.html
@@ -210,22 +210,7 @@
{% endif %}
-
-
-
- {% include 'inc/image_attachments.html' with images=object.images.all %}
-
- {% if perms.extras.add_imageattachment %}
-
- {% endif %}
-
+ {% include 'inc/image_attachments_panel.html' %}