Fix p.url condition to test for blank and `nil` values
This commit is contained in:
parent
1d50924d8b
commit
1cc75384c0
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue