fix(python): use correct Status field in account/show.html

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-12-04 00:50:32 -08:00
parent f8bef16d32
commit 2ea4559b60
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -50,6 +50,17 @@
</tr> </tr>
<tr> <tr>
<th>{% trans %}Status{% endtrans %}:</th> <th>{% trans %}Status{% endtrans %}:</th>
{% if not user.InactivityTS %}
<td>{{ "Active" | tr }}</td>
{% else %}
{% set inactive_ds = user.InactivityTS | dt | as_timezone(timezone) %}
<td>
{{
"Inactive since %s" | tr
| format(inactive_ds.strftime("%Y-%m-%d %H:%M"))
}}
</td>
{% endif %}
<td>{{ "Active" if not user.Suspended else "Suspended" | tr }}</td> <td>{{ "Active" if not user.Suspended else "Suspended" | tr }}</td>
</tr> </tr>
<tr> <tr>