Don't even show the profile box if no profile exists
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 4 Jul 2011 21:54:06 +0000 (16:54 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 4 Jul 2011 21:54:06 +0000 (16:54 -0500)
mediagoblin/templates/mediagoblin/utils/profile.html

index 72a285d2c36a9105bfab5d36399aa1fbd3e41298..cd60bbfc1d2746acf89065e870f0c629537b9472 100644 (file)
 #}
 
 {% 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 %}