Mercurial > agora-palash
comparison templates/profile/user.djhtml @ 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 | eb3371142f4f |
children | 5ab229c9d348 |
comparison
equal
deleted
inserted
replaced
109:a66c7907751b | 110:0fd8fb20033e |
---|---|
1 {% extends "base.djhtml" %} | 1 {% extends "base.djhtml" %} |
2 | 2 |
3 {% block boxtitle %} | 3 {% block breadcrumbs %} |
4 {{profile.user.username}} <br/> | 4 Viewing profile: {{ profile.user }} |
5 {% if profile.user = user %} | 5 {% endblock %} |
6 <small> | 6 |
7 (<a href="{% url agora.apps.profile.views.editprofile %}"> | |
8 edit profile | |
9 </a>) | |
10 </small> | |
11 {% endif %} | |
12 {% endblock boxtitle%} | |
13 | 7 |
14 {% block content %} | 8 {% block content %} |
15 <div id="userinfo"> | |
16 {% if profile.user.first_name or profile.user.last_name %} | |
17 <span class="userfield">Name</span> | |
18 <span class="userdata">{{name}}</span> | |
19 <br /> | |
20 {% endif %} | |
21 <span class="userfield">Preferred license</span> | |
22 <span class="userdata">{{profile.preferred_license}}</span> | |
23 <br /> | |
24 {% if profile.interests %} | |
25 <h4> | |
26 Interests | |
27 </h4> | |
28 <p class="userdata"> | |
29 {{profile.interests}} | |
30 </p> | |
31 {% endif %} | |
32 | 9 |
33 {% if profile.blurb %} | 10 <h1>{{ profile.user }}'s profile</h1> |
34 <h4> | 11 |
35 About {{name}} | 12 <dl> |
36 </h4> | 13 {% if profile.user.first_name or profile.user.last_name %} |
37 <p class="userdata"> | 14 <dt>Name:</dt> |
38 {{profile.blurb}} | 15 <dd>{{ name|default:"N/A" }}</dd> |
39 </p> | 16 {% endif %} |
40 </div> | 17 |
41 {% endif %} | 18 <dt>Preferred license:</dt> |
19 <dd>{{ profile.preferred_license }}</dd> | |
20 </dl> | |
21 | |
22 <h2>Interests</h2> | |
23 | |
24 <p>{{ profile.interests }}</p> | |
25 | |
26 <h2>About {{ name }}</h2> | |
27 | |
28 <p>{{ profile.blurb }}</p> | |
42 {% endblock %} | 29 {% endblock %} |
43 | 30 |
44 {% block content-related %} | 31 {% block content-related %} |
45 {% if bundles or snippets %} | 32 {% if bundles or snippets %} |
46 <div id="info"> | 33 <div id="info"> |