Fix p.url condition to test for blank and `nil` values

This commit is contained in:
Michael Rose 2017-03-13 22:33:04 -04:00
parent 1d50924d8b
commit 1cc75384c0
1 changed files with 2 additions and 2 deletions

View File

@ -27,11 +27,11 @@
{% endif %}
{% if p.username %}
<span class="username">
{% if p.url %}
{% unless p.url == '' or p.url == nil %}
<a href="{{ p.url }}">{{ p.username }}</a>
{% else %}
{{ p.username }}
{% endif %}
{% endunless %}
</span>
{% endif %}
</div>