mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-14 07:42:18 -06:00
Standardized date/time displays; moved format declarations to configuration.py
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
{% for a in recent_activity %}
|
||||
<div class="list-group-item">
|
||||
{{ a.icon }} {{ a.message|safe }}<br />
|
||||
<small class="text-muted">{{ a.user }} - {{ a.time|date:"Y-m-d H:i" }}</small>
|
||||
<small class="text-muted">{{ a.user }} - {{ a.time|date:'SHORT_DATETIME_FORMAT' }}</small>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<td>Date Added</td>
|
||||
<td>
|
||||
{% if aggregate.date_added %}
|
||||
<span>{{ aggregate.date_added|date }}</span>
|
||||
<span>{{ aggregate.date_added }}</span>
|
||||
{% else %}
|
||||
<span class="text-muted">Not defined</span>
|
||||
{% endif %}
|
||||
|
||||
@@ -57,11 +57,11 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Created</td>
|
||||
<td>{{ secret.created|date }}</td>
|
||||
<td>{{ secret.created }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Modified</td>
|
||||
<td>{{ secret.last_modified|date:'DATETIME_FORMAT' }}</td>
|
||||
<td>Last Updated</td>
|
||||
<td>{{ secret.last_updated }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<small class="text-muted">Email</small>
|
||||
<h5>{{ request.user.email }}</h5>
|
||||
<small class="text-muted">Registered</small>
|
||||
<h5>{{ request.user.date_joined|date }}</h5>
|
||||
<h5>{{ request.user.date_joined }}</h5>
|
||||
<small class="text-muted">Groups</small>
|
||||
<h5>{{ request.user.groups.all|join:', ' }}</h5>
|
||||
<small class="text-muted">Admin access</small>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<tbody>
|
||||
{% for action in recent_activity %}
|
||||
<tr>
|
||||
<td>{{ action.time|date:"Y-m-d H:i" }}</td>
|
||||
<td>{{ action.time|date:'SHORT_DATETIME_FORMAT' }}</td>
|
||||
<td>{{ action.icon }} {{ action.message|safe }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user