From 3f2c2b6413008eefdf278bcb650989c7d31c705a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 31 Jan 2010 22:14:51 -0600 Subject: 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 --- templates/public/developer_list.html | 28 ++++++++++++++-------------- 1 file 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 @@ {% for dev in dev_list %} + {% with dev.get_profile as prof %} + {% endwith %} {% endfor %}
- Image for {{ dev.get_profile.alias }} + Image for {{ prof.alias }} - {% autoescape off %} - + - + - + - - + - + - + - + - + - + - +
Name: {{ dev.get_full_name }}
Alias:{{ dev.get_profile.alias }}{{ prof.alias }}
Email:{{ dev.get_profile.public_email }}{{ prof.public_email }}
Other Contact:{{ dev.get_profile.other_contact }}{{ prof.other_contact }}
Roles:{{ dev.get_profile.roles }}
+
{{ prof.roles }}
Website:{{ dev.get_profile.website }}{% if prof %}{{ prof.website }}{% endif %}
Occupation:{{ dev.get_profile.occupation }}{{ prof.occupation }}
YOB:{% if dev.get_profile.yob %}{{ dev.get_profile.yob }}{% else %} {% endif %}{% if prof.yob %}{{ prof.yob }}{% endif %}
Location:{{ dev.get_profile.location }}{{ prof.location }}
Languages:{{ dev.get_profile.languages }}{{ prof.languages }}
Interests:{{ dev.get_profile.interests }}{{ prof.interests }}
Favorite Distros:{{ dev.get_profile.favorite_distros }}{{ prof.favorite_distros }}
- {% endautoescape %}
-- cgit v1.1-4-g5e80