Mercurial > public > sg101
comparison gpp/templates/bio/edit_profile.html @ 492:3c48a555298d
Added a custom tag to display a link to a profile. Refactored the avatar tag to optionally display a profile link around the image. Removed the width and height attributes from the avatar image tag. I think this was causing disk hits whenever those properties were not cached. The avatar tag is now an inclusion tag.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 22 Oct 2011 00:07:50 +0000 |
parents | 88b2b9cb8c1f |
children |
comparison
equal
deleted
inserted
replaced
491:7dbdbb08e68c | 492:3c48a555298d |
---|---|
1 {% extends 'bio/base.html' %} | 1 {% extends 'bio/base.html' %} |
2 {% load url from future %} | 2 {% load url from future %} |
3 {% load avatar_tags %} | 3 {% load bio_tags %} |
4 {% load elsewhere_tags %} | 4 {% load elsewhere_tags %} |
5 {% block title %}Edit Profile{% endblock %} | 5 {% block title %}Edit Profile{% endblock %} |
6 {% block custom_js %} | 6 {% block custom_js %} |
7 {{ profile_form.media }} | 7 {{ profile_form.media }} |
8 {% endblock %} | 8 {% endblock %} |
13 <table> | 13 <table> |
14 <tr> | 14 <tr> |
15 <td> | 15 <td> |
16 <a href="{% url 'bio-change_avatar' %}"><img src="{{ STATIC_URL }}icons/image_edit.png" alt="Change Avatar" /></a> | 16 <a href="{% url 'bio-change_avatar' %}"><img src="{{ STATIC_URL }}icons/image_edit.png" alt="Change Avatar" /></a> |
17 <a href="{% url 'bio-change_avatar' %}">Change Avatar</a></td> | 17 <a href="{% url 'bio-change_avatar' %}">Change Avatar</a></td> |
18 <td>{% avatar user %}</td> | 18 <td>{% avatar user 0 %}</td> |
19 </tr> | 19 </tr> |
20 {{ user_form.as_table }} | 20 {{ user_form.as_table }} |
21 {{ profile_form.as_table }} | 21 {{ profile_form.as_table }} |
22 <tr> | 22 <tr> |
23 <td> | 23 <td> |