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 %} {% endif %}
{% if p.username %} {% if p.username %}
<span class="username"> <span class="username">
{% if p.url %} {% unless p.url == '' or p.url == nil %}
<a href="{{ p.url }}">{{ p.username }}</a> <a href="{{ p.url }}">{{ p.username }}</a>
{% else %} {% else %}
{{ p.username }} {{ p.username }}
{% endif %} {% endunless %}
</span> </span>
{% endif %} {% endif %}
</div> </div>