mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(python): use correct Status field in account/show.html
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
f8bef16d32
commit
2ea4559b60
1 changed files with 11 additions and 0 deletions
|
@ -50,6 +50,17 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Reference in a new issue