From 1a837cf7c8d61bb4bc1c7b4629ff2bcbbf255a97 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 4 Jul 2011 16:54:06 -0500 Subject: [PATCH] Don't even show the profile box if no profile exists --- .../templates/mediagoblin/utils/profile.html | 26 ++++++++++--------- 1 file 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 -%} -
- {% 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 %} -- 2.25.1