Don't even show the profile box if no profile exists

This commit is contained in:
Christopher Allan Webber 2011-07-04 16:54:06 -05:00
parent 899d891692
commit 1a837cf7c8

View File

@ -17,17 +17,19 @@
#} #}
{% block profile_content -%} {% block profile_content -%}
<div class="profile_content"> {% if user.url or user.bio %}
{% if user.url %} <div class="profile_content">
<p class="profile_homepage"> {% if user.url %}
<a href="{{ user.url }}">homepage</a> <div class="profile_homepage">
</p> <a href="{{ user.url }}">{{ user.url }}</a>
{% endif %} </div>
{% endif %}
{% if user.bio %} {% if user.bio %}
<p class="profile_bio"> <div class="profile_bio">
{{ user.bio }} {{ user.bio }}
</p> </div>
{% endif %} {% endif %}
</div> </div>
{% endif %}
{% endblock %} {% endblock %}