mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-09 09:59:37 -06:00
With this commit all dates in the UI are now consistently displayed. I changed the long date format as suggested by @xkilian and confirmed by my own research. * DATETIME_FORMAT * Before July 20, 2020 4:52 p.m. * Now 20th July, 2020 16:52 "20th July, 2020" would be spoken as "the 20th of July, 2020" but the "the" and "of" are never written. The only exception is `object_list.html`. I tried it but there it does not work so easily because the dates are passed to Jinja as SafeString.
20 lines
741 B
HTML
20 lines
741 B
HTML
{% extends 'users/base.html' %}
|
|
{% load helpers %}
|
|
|
|
{% block title %}User Profile{% endblock %}
|
|
|
|
{% block usercontent %}
|
|
<small class="text-muted">User login</small>
|
|
<h5>{{ request.user.username }}</h5>
|
|
<small class="text-muted">Full name</small>
|
|
<h5>{{ request.user.first_name }} {{ request.user.last_name }}</h5>
|
|
<small class="text-muted">Email</small>
|
|
<h5>{{ request.user.email }}</h5>
|
|
<small class="text-muted">Registered</small>
|
|
<h5>{{ request.user.date_joined|annotated_date }}</h5>
|
|
<small class="text-muted">Groups</small>
|
|
<h5>{{ request.user.groups.all|join:', ' }}</h5>
|
|
<small class="text-muted">Admin access</small>
|
|
<h5>{{ request.user.is_staff|yesno|capfirst }}</h5>
|
|
{% endblock %}
|