Mercurial > hg > agora
changeset 110:0fd8fb20033e
Add back basic user info to profile page
The rest will be added back and the layout will be improved soon.
author | dellsystem <ilostwaldo@gmail.com> |
---|---|
date | Tue, 11 Sep 2012 21:09:04 -0400 |
parents | a66c7907751b |
children | 5f5f838c1e32 |
files | static/css/agora.less templates/profile/user.djhtml |
diffstat | 2 files changed, 36 insertions(+), 36 deletions(-) [+] |
line wrap: on
line diff
--- a/static/css/agora.less +++ b/static/css/agora.less @@ -324,3 +324,16 @@ clear: both; } } + +dl { + dt { + float: left; + clear: left; + font-weight: bold; + padding-right: 5px; + } + + dd { + margin-left: 200px; + } +}
--- a/templates/profile/user.djhtml +++ b/templates/profile/user.djhtml @@ -1,44 +1,31 @@ {% extends "base.djhtml" %} -{% block boxtitle %} -{{profile.user.username}} <br/> -{% if profile.user = user %} -<small> - (<a href="{% url agora.apps.profile.views.editprofile %}"> - edit profile - </a>) -</small> -{% endif %} -{% endblock boxtitle%} +{% block breadcrumbs %} +Viewing profile: {{ profile.user }} +{% endblock %} + {% block content %} -<div id="userinfo"> - {% if profile.user.first_name or profile.user.last_name %} - <span class="userfield">Name</span> - <span class="userdata">{{name}}</span> - <br /> - {% endif %} - <span class="userfield">Preferred license</span> - <span class="userdata">{{profile.preferred_license}}</span> - <br /> - {% if profile.interests %} - <h4> - Interests - </h4> - <p class="userdata"> - {{profile.interests}} - </p> - {% endif %} + +<h1>{{ profile.user }}'s profile</h1> + +<dl> + {% if profile.user.first_name or profile.user.last_name %} + <dt>Name:</dt> + <dd>{{ name|default:"N/A" }}</dd> + {% endif %} - {% if profile.blurb %} - <h4> - About {{name}} - </h4> - <p class="userdata"> - {{profile.blurb}} - </p> -</div> -{% endif %} + <dt>Preferred license:</dt> + <dd>{{ profile.preferred_license }}</dd> +</dl> + +<h2>Interests</h2> + +<p>{{ profile.interests }}</p> + +<h2>About {{ name }}</h2> + +<p>{{ profile.blurb }}</p> {% endblock %} {% block content-related %}