annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
90
eb3371142f4f Remove inheriting from whitebox.djhtml for template files
dellsystem <ilostwaldo@gmail.com>
parents: 80
diff changeset
1 {% extends "base.djhtml" %}
35
290dd9208cc4 Implement editing user profiles and fix bugs related to the login/logout buttons. Implement 403 exception
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 33
diff changeset
2
110
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
3 {% block breadcrumbs %}
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
4 Viewing profile: {{ profile.user }}
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
5 {% endblock %}
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
6
35
290dd9208cc4 Implement editing user profiles and fix bugs related to the login/logout buttons. Implement 403 exception
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 33
diff changeset
7
90
eb3371142f4f Remove inheriting from whitebox.djhtml for template files
dellsystem <ilostwaldo@gmail.com>
parents: 80
diff changeset
8 {% block content %}
110
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
9
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
10 <h1>{{ profile.user }}'s profile</h1>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
11
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
12 <dl>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
13 {% if profile.user.first_name or profile.user.last_name %}
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
14 <dt>Name:</dt>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
15 <dd>{{ name|default:"N/A" }}</dd>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
16 {% endif %}
30
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
17
110
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
18 <dt>Preferred license:</dt>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
19 <dd>{{ profile.preferred_license }}</dd>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
20 </dl>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
21
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
22 <h2>Interests</h2>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
23
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
24 <p>{{ profile.interests }}</p>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
25
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
26 <h2>About {{ name }}</h2>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
27
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
28 <p>{{ profile.blurb }}</p>
90
eb3371142f4f Remove inheriting from whitebox.djhtml for template files
dellsystem <ilostwaldo@gmail.com>
parents: 80
diff changeset
29 {% endblock %}
30
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
30
32
3c56be2f61fc Move login/logout buttons to navigation bar, remove cargo-cult CSS
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 30
diff changeset
31 {% block content-related %}
30
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
32 {% if bundles or snippets %}
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
33 <div id="info">
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
34 <h3>
33
28a512881850 Several fixes. See detailed commit message.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 32
diff changeset
35 Contributions by {{name}}
30
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
36 </h3>
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
37 <div class="whitebox">
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
38 {% if bundles %}
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
39 <h5>
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
40 Bundles
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
41 </h5>
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
42 <ul>
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
43 {% for b in bundles %}
36
bc0137b6c264 Shuffle URLs around, make them more consistent
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 35
diff changeset
44 <li>
bc0137b6c264 Shuffle URLs around, make them more consistent
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 35
diff changeset
45 <a href="{% url agora.apps.bundle.views.detail profile.user b %}">
bc0137b6c264 Shuffle URLs around, make them more consistent
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 35
diff changeset
46 {{b.name}}
bc0137b6c264 Shuffle URLs around, make them more consistent
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 35
diff changeset
47 </a>
bc0137b6c264 Shuffle URLs around, make them more consistent
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 35
diff changeset
48 </li>
30
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
49 {% endfor %}
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
50 </ul>
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
51 {% endif %}
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
52 {% if snippets %}
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
53 <h5>
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
54 Snippets
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
55 </h5>
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
56 <ul>
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
57 {% for s in snippets %}
52
349162d0ce19 Fundamental fixes in snippet templates
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 36
diff changeset
58 <li><a href="{% url snippet_details s %}">
349162d0ce19 Fundamental fixes in snippet templates
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 36
diff changeset
59 {% if s.title %}
349162d0ce19 Fundamental fixes in snippet templates
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 36
diff changeset
60 {{s.title}}
349162d0ce19 Fundamental fixes in snippet templates
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 36
diff changeset
61 {% else %}
349162d0ce19 Fundamental fixes in snippet templates
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 36
diff changeset
62 Snippet #{{s.pk}}
349162d0ce19 Fundamental fixes in snippet templates
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 36
diff changeset
63 {% endif %}
349162d0ce19 Fundamental fixes in snippet templates
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 36
diff changeset
64 </a></li>
30
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
65 {% endfor %}
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
66 </ul>
52
349162d0ce19 Fundamental fixes in snippet templates
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 36
diff changeset
67 {% endif %}
30
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
68 </div>
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
69 </div>
f14aaa98306a Register more apps in the admin site, write an actual template for the user profile page
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 29
diff changeset
70 {% endif %}
35
290dd9208cc4 Implement editing user profiles and fix bugs related to the login/logout buttons. Implement 403 exception
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 33
diff changeset
71 {% endblock content-related %}