mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 20:22:53 -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>
|
<p>
|
||||||
<small class="text-muted">
|
<small class="text-muted">
|
||||||
Created {{ object.created|annotated_date }} ·
|
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>
|
</small>
|
||||||
<span class="label label-default">{{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }}</span>
|
<span class="label label-default">{{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }}</span>
|
||||||
</p>
|
</p>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<small class="text-muted">
|
<small class="text-muted">
|
||||||
Created {{ object.created|annotated_date }} ·
|
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>
|
</p>
|
||||||
{% if not object.is_active %}
|
{% if not object.is_active %}
|
||||||
<div class="alert alert-warning" role="alert">
|
<div class="alert alert-warning" role="alert">
|
||||||
|
Loading…
Reference in New Issue
Block a user