fix(python): add logged in date field to account/show.html

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-12-04 01:16:14 -08:00
parent 2ea4559b60
commit 224a0de784
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 14 additions and 1 deletions

View file

@ -61,7 +61,6 @@
}}
</td>
{% endif %}
<td>{{ "Active" if not user.Suspended else "Suspended" | tr }}</td>
</tr>
<tr>
<th>{% trans %}Registration date{% endtrans %}:</th>
@ -69,6 +68,13 @@
{{ user.RegistrationTS.strftime("%Y-%m-%d") }}
</td>
</tr>
{% if login_ts %}
<tr>
<th>{% trans %}Last Login{% endtrans %}:</th>
{% set login_ds = login_ts | dt | as_timezone(timezone) %}
<td>{{ login_ds.strftime("%Y-%m-%d") }}</td>
</tr>
{% endif %}
<tr>
<th>{% trans %}Links{% endtrans %}:</th>
<td>