summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-01-31 22:14:51 -0600
committerDan McGee <dan@archlinux.org>2010-01-31 22:14:51 -0600
commit3f2c2b6413008eefdf278bcb650989c7d31c705a (patch)
tree378372683d2a4e388b6349b075aa71ad8eda9100
parentc096ee658ece01c3d7a9a819a1354f352378a00d (diff)
More profile page cleanup
* Use {% with %} to make getting things out of the profile easier * Remove HTML exemption as it was causing unescaped entities to get through to the page * Link URLs instead of just printing them to the page Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/public/developer_list.html28
1 files changed, 14 insertions, 14 deletions
diff --git a/templates/public/developer_list.html b/templates/public/developer_list.html
index 662a21ed..37a59539 100644
--- a/templates/public/developer_list.html
+++ b/templates/public/developer_list.html
@@ -7,54 +7,54 @@
<table class="center" cellpadding="20">
{% for dev in dev_list %}
+ {% with dev.get_profile as prof %}
<tr>
<td class="devpic">
- <img src="{{ dev.get_profile.picture.url }}" height="175" width="175" style="border:1px solid black" alt="Image for {{ dev.get_profile.alias }}"/>
+ <img src="{{ prof.picture.url }}" height="175" width="175" style="border:1px solid black" alt="Image for {{ prof.alias }}"/>
</td><td>
<a name="{{ dev.username }}" />
- {% autoescape off %}
<table class="deventry" cellspacing="5">
<tr>
<th>Name:</th>
<td>{{ dev.get_full_name }}</td>
</tr><tr>
<th>Alias:</th>
- <td>{{ dev.get_profile.alias }}</td>
+ <td>{{ prof.alias }}</td>
</tr><tr>
<th>Email:</th>
- <td>{{ dev.get_profile.public_email }}</td>
+ <td>{{ prof.public_email }}</td>
</tr><tr>
<th>Other Contact:</th>
- <td>{{ dev.get_profile.other_contact }}</td>
+ <td>{{ prof.other_contact }}</td>
</tr><tr>
<th>Roles:</th>
- <td>{{ dev.get_profile.roles }}<br />
+ <td>{{ prof.roles }}<br />
</td>
</tr><tr>
<th>Website:</th>
- <td>{{ dev.get_profile.website }}</td>
+ <td>{% if prof %}<a href="{{ prof.website }}">{{ prof.website }}</a>{% endif %}</td>
</tr><tr>
<th>Occupation:</th>
- <td>{{ dev.get_profile.occupation }}</td>
+ <td>{{ prof.occupation }}</td>
</tr><tr>
<th>YOB:</th>
- <td>{% if dev.get_profile.yob %}{{ dev.get_profile.yob }}{% else %}&nbsp;{% endif %}</td>
+ <td>{% if prof.yob %}{{ prof.yob }}{% endif %}</td>
</tr><tr>
<th>Location:</th>
- <td>{{ dev.get_profile.location }}</td>
+ <td>{{ prof.location }}</td>
</tr><tr>
<th>Languages:</th>
- <td>{{ dev.get_profile.languages }}</td>
+ <td>{{ prof.languages }}</td>
</tr><tr>
<th>Interests:</th>
- <td>{{ dev.get_profile.interests }}</td>
+ <td>{{ prof.interests }}</td>
</tr><tr>
<th>Favorite Distros:</th>
- <td>{{ dev.get_profile.favorite_distros }}</td>
+ <td>{{ prof.favorite_distros }}</td>
</tr>
</table>
- {% endautoescape %}
</td>
</tr>
+ {% endwith %}
{% endfor %}
</table>