From add68d904ad033fbba038bcdc17b34aa83092dfe Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 15 Aug 2024 10:48:28 -0400 Subject: [PATCH] Link to object in notifications dropdown only for non-destructive events --- netbox/templates/htmx/notifications.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/netbox/templates/htmx/notifications.html b/netbox/templates/htmx/notifications.html index 23660e4c5..e03e5afc9 100644 --- a/netbox/templates/htmx/notifications.html +++ b/netbox/templates/htmx/notifications.html @@ -7,7 +7,11 @@
- {{ notification.object_repr }} + {% if not notification.event.destructive %} + {{ notification.object_repr }} + {% else %} + {{ notification.object_repr }} + {% endif %}
{{ notification.event }} {{ notification.created|timesince }} {% trans "ago" %}