Skip to content

Commit 8aa427f

Browse files
ypidjeremystretch
andcommitted
Use annotated_date also for updated datetimes
This changes the text from: Updated 5 months, 1 week ago to: Updated 2021-01-24 00:33 (5 months, 1 week ago) Co-authored-by: Jeremy Stretch <[email protected]>
1 parent 3378d51 commit 8aa427f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

netbox/templates/generic/object.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h1 class="title">{% block title %}{{ object }}{% endblock %}</h1>
4343
<p>
4444
<small class="text-muted">
4545
Created {{ object.created|annotated_date }} &middot;
46-
Updated <span title="{{ object.last_updated|date:'SHORT_DATETIME_FORMAT' }} ({{ object.last_updated|date:'DATETIME_FORMAT' }})">{{ object.last_updated|timesince }}</span> ago
46+
Updated {{ object.last_updated|annotated_date }} ({{ object.last_updated|timesince }} ago)
4747
</small>
4848
<span class="label label-default">{{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }}</span>
4949
</p>

netbox/templates/users/userkey.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h4>
2222
<p>
2323
<small class="text-muted">
2424
Created {{ object.created|annotated_date }} &middot;
25-
Updated <span title="{{ object.last_updated|date:'SHORT_DATETIME_FORMAT' }} ({{ object.last_updated|date:'DATETIME_FORMAT' }})">{{ object.last_updated|timesince }}</span> ago
25+
Updated {{ object.last_updated|annotated_date }} ({{ object.last_updated|timesince }} ago)
2626
</p>
2727
{% if not object.is_active %}
2828
<div class="alert alert-warning" role="alert">

0 commit comments

Comments
 (0)