From 210d7bb573b750485231eab3d2c0a11f6c7fdc9d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 30 Aug 2023 11:13:02 -0400 Subject: [PATCH] Display last_updated time only if defined --- netbox/templates/generic/object.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/netbox/templates/generic/object.html b/netbox/templates/generic/object.html index 90a37cca5..ce6113cf4 100644 --- a/netbox/templates/generic/object.html +++ b/netbox/templates/generic/object.html @@ -46,8 +46,10 @@ Context: {% block subtitle %}
{% trans "Created" %} {{ object.created|annotated_date }} - · - {% trans "Updated" %} {{ object.last_updated|timesince }} {% trans "ago" %} + {% if object.last_updated %} + · + {% trans "Updated" %} {{ object.last_updated|timesince }} {% trans "ago" %} + {% endif %}
{% endblock subtitle %}