# HG changeset patch # User dellsystem # Date 1347412144 14400 # Node ID 0fd8fb20033ea41536e7a7d098b11805dead49db # Parent a66c7907751b6bb0281540fe6f9666023b8fe1e2 Add back basic user info to profile page The rest will be added back and the layout will be improved soon. diff -r a66c7907751b -r 0fd8fb20033e static/css/agora.less --- a/static/css/agora.less Tue Sep 11 21:07:58 2012 -0400 +++ b/static/css/agora.less Tue Sep 11 21:09:04 2012 -0400 @@ -324,3 +324,16 @@ clear: both; } } + +dl { + dt { + float: left; + clear: left; + font-weight: bold; + padding-right: 5px; + } + + dd { + margin-left: 200px; + } +} diff -r a66c7907751b -r 0fd8fb20033e templates/profile/user.djhtml --- a/templates/profile/user.djhtml Tue Sep 11 21:07:58 2012 -0400 +++ b/templates/profile/user.djhtml Tue Sep 11 21:09:04 2012 -0400 @@ -1,44 +1,31 @@ {% extends "base.djhtml" %} -{% block boxtitle %} -{{profile.user.username}}
-{% if profile.user = user %} - - ( - edit profile - ) - -{% endif %} -{% endblock boxtitle%} +{% block breadcrumbs %} +Viewing profile: {{ profile.user }} +{% endblock %} + {% block content %} -
- {% if profile.user.first_name or profile.user.last_name %} - Name - {{name}} -
- {% endif %} - Preferred license - {{profile.preferred_license}} -
- {% if profile.interests %} -

- Interests -

-

- {{profile.interests}} -

- {% endif %} + +

{{ profile.user }}'s profile

+ +
+ {% if profile.user.first_name or profile.user.last_name %} +
Name:
+
{{ name|default:"N/A" }}
+ {% endif %} - {% if profile.blurb %} -

- About {{name}} -

-

- {{profile.blurb}} -

-
-{% endif %} +
Preferred license:
+
{{ profile.preferred_license }}
+ + +

Interests

+ +

{{ profile.interests }}

+ +

About {{ name }}

+ +

{{ profile.blurb }}

{% endblock %} {% block content-related %}