annotate templates/profile/user.djhtml @ 152:9294cf4097d8

Show contributions (bundles, snippets) on profile
author dellsystem <ilostwaldo@gmail.com>
date Mon, 15 Oct 2012 00:58:54 -0400
parents 5ab229c9d348
children
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 %}
152
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
9 <div id="non-sidebar">
110
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
10
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
11 <h1>{{ profile.user }}'s profile</h1>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
12
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
13 <dl>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
14 {% 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
15 <dt>Name:</dt>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
16 <dd>{{ name|default:"N/A" }}</dd>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
17 {% 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
18
110
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
19 <dt>Preferred license:</dt>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
20 <dd>{{ profile.preferred_license }}</dd>
130
5ab229c9d348 Add back ability to edit account settings
dellsystem <ilostwaldo@gmail.com>
parents: 110
diff changeset
21
5ab229c9d348 Add back ability to edit account settings
dellsystem <ilostwaldo@gmail.com>
parents: 110
diff changeset
22 <dt>Syntax highlighting style:</dt>
5ab229c9d348 Add back ability to edit account settings
dellsystem <ilostwaldo@gmail.com>
parents: 110
diff changeset
23 <dd>{{ profile.pygments_style }}</dd>
110
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
24 </dl>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
25
130
5ab229c9d348 Add back ability to edit account settings
dellsystem <ilostwaldo@gmail.com>
parents: 110
diff changeset
26 {% if profile.interests %}
110
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
27 <h2>Interests</h2>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
28
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
29 <p>{{ profile.interests }}</p>
130
5ab229c9d348 Add back ability to edit account settings
dellsystem <ilostwaldo@gmail.com>
parents: 110
diff changeset
30 {% endif %}
110
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
31
130
5ab229c9d348 Add back ability to edit account settings
dellsystem <ilostwaldo@gmail.com>
parents: 110
diff changeset
32 {% if profile.blurb %}
110
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
33 <h2>About {{ name }}</h2>
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
34
0fd8fb20033e Add back basic user info to profile page
dellsystem <ilostwaldo@gmail.com>
parents: 90
diff changeset
35 <p>{{ profile.blurb }}</p>
130
5ab229c9d348 Add back ability to edit account settings
dellsystem <ilostwaldo@gmail.com>
parents: 110
diff changeset
36 {% endif %}
152
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
37 </div><div id="sidebar">
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
38 <h2>Contributions</h2>
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
39
152
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
40 <h3><a href="{% url bundle_new %}">Bundles</a></h3>
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
41 {% 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
42 <ul>
152
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
43 {% for bundle in bundles %}
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
44 <li><a href="{{ bundle.get_absolute_url }}">{{ bundle }}</a></li>
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
45 {% endfor %}
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
46 </ul>
152
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
47 {% else %}
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
48 <p>{{ name }} does not have any bundles.</p>
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 {% endif %}
152
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
50
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
51 <h3><a href="{% url snippet_new %}">Snippets</a></h3>
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
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 <ul>
152
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
54 {% for snippet in snippets %}
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
55 <li><a href="{{ snippet.get_absolute_url }}">{{ snippet }}</a></li>
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
56 {% endfor %}
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
57 </ul>
152
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
58 {% else %}
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
59 <p>{{ name }} does not have any snippets.</p>
52
349162d0ce19 Fundamental fixes in snippet templates
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 36
diff changeset
60 {% 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
61 </div>
152
9294cf4097d8 Show contributions (bundles, snippets) on profile
dellsystem <ilostwaldo@gmail.com>
parents: 130
diff changeset
62 {% endblock %}