Commit ea6f9067 authored by kaiyou's avatar kaiyou

Only display contact info when necessary

parent 0a9a5706
Pipeline #1486 passed with stage
in 13 minutes and 38 seconds
......@@ -18,10 +18,12 @@
<dt>{% trans %}Created at{% endtrans %}</dt>
<dd>{{ user.created_at }}</dd>
{% if user.contact %}
{% for name, value in user.contact.items() %}
<dt>{{ name | capitalize }}</dt>
<dd>{{ value }}</dd>
{% endfor %}
{% endif %}
</dl>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment