templates/user/my_profile.html
changeset 27 8d52492d3c14
parent 24 fcae44e94845
child 28 e137b605b888
--- a/templates/user/my_profile.html	Thu Feb 04 23:16:46 2010 +0530
+++ b/templates/user/my_profile.html	Thu Feb 04 23:17:59 2010 +0530
@@ -1,11 +1,50 @@
 {% extends 'base.html' %}
+
+{% block title %}
+    {{ profile.user }}'s Profile
+{% endblock %}
+
 {% block content %}
+    <!--{{ view_profile_form.as_p }}-->
 
-{% if edit_profile %}
-    <a href="/user/edit/">edit my profile</a>
-{% endif %}
-
-<br>
-{{ view_profile_form.as_p }}
-
+    <h2>{{ profile }}'s Profile</h2><hr>
+    {% if edit_profile %}
+        <a href="/user/edit/">edit profile</a>
+    {% endif %}
+    <hr>
+    {% if profile.aboutme %}
+        <br><h4>About Me</h4><hr>{{ profile.aboutme }}
+    {% endif %}
+    {% if profile.nick %}
+        <br><h4>Nick Name</h4><hr>{{ profile.nick }}
+    {% endif %}
+    {% if profile.dob %}
+        <br><h4>Date of Birth</h4><hr>{{ profile.dob }}
+    {% endif %}
+    {% if profile.credits %}
+        <br><h4>Credits</h4><hr>{{ profile.credits }}
+    {% endif %}
+    {% if profile.foss_comm %}
+        <br><h4>Foss Community</h4><hr>{{ profile.foss_comm }}
+    {% endif %}
+    {% if profile.phonenum %}
+        <br><h4>Phone Number</h4><hr>{{ profile.phonenum }}
+    {% endif %}
+    {% if profile.homepage %}
+        <br><h4>Homepage</h4><hr>{{ profile.homepage }}
+    {% endif %}
+    {% if profile.street or profile.city or profile.country %}
+        <br><h4>Address</h4><hr>
+        {% if profile.street %}
+            {{ profile.street }}
+            <br>
+        {% endif %}
+        {% if profile.city %}
+            {{ profile.city }}
+            <br>
+        {% endif %}
+        {% if profile.country %}
+            {{ profile.country }}
+        {% endif %}
+    {% endif %}
 {% endblock %}