mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
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 <jstretch@ns1.com>
This commit is contained in:
parent
0ad9b83623
commit
74f1b51b38
@ -43,7 +43,7 @@
|
||||
<p>
|
||||
<small class="text-muted">
|
||||
Created {{ object.created|annotated_date }} ·
|
||||
Updated <span title="{{ object.last_updated|date:'SHORT_DATETIME_FORMAT' }} ({{ object.last_updated|date:'DATETIME_FORMAT' }})">{{ object.last_updated|timesince }}</span> ago
|
||||
Updated {{ object.last_updated|annotated_date }} ({{ object.last_updated|timesince }} ago)
|
||||
</small>
|
||||
<span class="label label-default">{{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }}</span>
|
||||
</p>
|
||||
|
@ -22,7 +22,7 @@
|
||||
<p>
|
||||
<small class="text-muted">
|
||||
Created {{ object.created|annotated_date }} ·
|
||||
Updated <span title="{{ object.last_updated|date:'SHORT_DATETIME_FORMAT' }} ({{ object.last_updated|date:'DATETIME_FORMAT' }})">{{ object.last_updated|timesince }}</span> ago
|
||||
Updated {{ object.last_updated|annotated_date }} ({{ object.last_updated|timesince }} ago)
|
||||
</p>
|
||||
{% if not object.is_active %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
|
Loading…
Reference in New Issue
Block a user