fix: hide email when account's email hidden is set

Fixes: 362
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2022-05-06 18:30:29 +01:00
parent 7a525d7693
commit 02d114d575
No known key found for this signature in database
GPG key ID: 59E43E106B247368

View file

@ -25,7 +25,11 @@
<tr>
<th>{% trans %}Email Address{% endtrans %}:</th>
<td>
{% if not user.HideEmail %}
<a href="mailto:{{ user.Email }}">{{ user.Email }}</a>
{% else %}
<span><em>&lt;{% trans %}hidden{% endtrans %}&gt;</em></span>
{% endif %}
</td>
</tr>
<tr>