aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-07-04 16:54:06 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-07-04 16:54:06 -0500
commit1a837cf7c8d61bb4bc1c7b4629ff2bcbbf255a97 (patch)
tree8e9325fc5aea9585511c456c9c5eac28dac9a9de
parent899d891692eeb7338adeedacafced7d026be933b (diff)
downloadmediagoblin-1a837cf7c8d61bb4bc1c7b4629ff2bcbbf255a97.tar.lz
mediagoblin-1a837cf7c8d61bb4bc1c7b4629ff2bcbbf255a97.tar.xz
mediagoblin-1a837cf7c8d61bb4bc1c7b4629ff2bcbbf255a97.zip
Don't even show the profile box if no profile exists
-rw-r--r--mediagoblin/templates/mediagoblin/utils/profile.html26
1 files changed, 14 insertions, 12 deletions
diff --git a/mediagoblin/templates/mediagoblin/utils/profile.html b/mediagoblin/templates/mediagoblin/utils/profile.html
index 72a285d2..cd60bbfc 100644
--- a/mediagoblin/templates/mediagoblin/utils/profile.html
+++ b/mediagoblin/templates/mediagoblin/utils/profile.html
@@ -17,17 +17,19 @@
#}
{% block profile_content -%}
- <div class="profile_content">
- {% if user.url %}
- <p class="profile_homepage">
- <a href="{{ user.url }}">homepage</a>
- </p>
- {% endif %}
+ {% if user.url or user.bio %}
+ <div class="profile_content">
+ {% if user.url %}
+ <div class="profile_homepage">
+ <a href="{{ user.url }}">{{ user.url }}</a>
+ </div>
+ {% endif %}
- {% if user.bio %}
- <p class="profile_bio">
- {{ user.bio }}
- </p>
- {% endif %}
- </div>
+ {% if user.bio %}
+ <div class="profile_bio">
+ {{ user.bio }}
+ </div>
+ {% endif %}
+ </div>
+ {% endif %}
{% endblock %}