From: Christopher Allan Webber Date: Mon, 4 Jul 2011 21:54:06 +0000 (-0500) Subject: Don't even show the profile box if no profile exists X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1a837cf7c8d61bb4bc1c7b4629ff2bcbbf255a97;p=mediagoblin.git Don't even show the profile box if no profile exists --- 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 -%} -
- {% if user.url %} -

- homepage -

- {% endif %} + {% if user.url or user.bio %} +
+ {% if user.url %} + + {% endif %} - {% if user.bio %} -

- {{ user.bio }} -

- {% endif %} -
+ {% if user.bio %} +
+ {{ user.bio }} +
+ {% endif %} +
+ {% endif %} {% endblock %}