[UI][SELFTAGS] Display 'none' if the user doesn't have selftags

This commit is contained in:
Hugo Sales 2020-08-16 23:22:53 +00:00 committed by Hugo Sales
parent 2486eb1949
commit 09a2541c36
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -25,9 +25,13 @@
<div class="info">
<b id="nick">{{ user_nickname }}</b>
<div class="tags">
{% for tag in user_tags %}
<a href='#'><i> #{{ tag }} </i></a>
{% endfor %}
{% if user_tags %}
{% for tag in user_tags %}
<a href='#'><i> #{{ tag }} </i></a>
{% endfor %}
{% else %}
<i> {{ '(None)' | trans }} </i>
{% endif %}
</div>
<div class="stats">
<span> <b> {{ user_followers }} </b> {{'Followers' | trans}} </span>