Don't even show the profile box if no profile exists
This commit is contained in:
parent
899d891692
commit
1a837cf7c8
@ -17,17 +17,19 @@
|
||||
#}
|
||||
|
||||
{% block profile_content -%}
|
||||
{% if user.url or user.bio %}
|
||||
<div class="profile_content">
|
||||
{% if user.url %}
|
||||
<p class="profile_homepage">
|
||||
<a href="{{ user.url }}">homepage</a>
|
||||
</p>
|
||||
<div class="profile_homepage">
|
||||
<a href="{{ user.url }}">{{ user.url }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if user.bio %}
|
||||
<p class="profile_bio">
|
||||
<div class="profile_bio">
|
||||
{{ user.bio }}
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user