mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
Link to object in notifications dropdown only for non-destructive events
This commit is contained in:
parent
ec25b06f58
commit
add68d904a
@ -7,7 +7,11 @@
|
|||||||
<i class="{{ notification.event.icon }}"></i>
|
<i class="{{ notification.event.icon }}"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="col text-truncate">
|
<div class="col text-truncate">
|
||||||
<a href="{% url 'extras:notification_read' pk=notification.pk %}" class="text-body d-block">{{ notification.object_repr }}</a>
|
{% if not notification.event.destructive %}
|
||||||
|
<a href="{% url 'extras:notification_read' pk=notification.pk %}" class="text-body d-block">{{ notification.object_repr }}</a>
|
||||||
|
{% else %}
|
||||||
|
<span class="text-body d-block">{{ notification.object_repr }}</span>
|
||||||
|
{% endif %}
|
||||||
<div class="d-block text-secondary fs-5">{{ notification.event }} {{ notification.created|timesince }} {% trans "ago" %}</div>
|
<div class="d-block text-secondary fs-5">{{ notification.event }} {{ notification.created|timesince }} {% trans "ago" %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
|
Loading…
Reference in New Issue
Block a user